Binance
Connecting Binance to Tealstreet
Binance users are required to complete KYC before creating new trading API Keys.
-
First, make sure you are logged into your Binance account.
-
Second, log into your Tealstreet account.
- Depending on when you made your account and when we did the snapshot, you might need to make a new account for v3.
Its a good idea to keep both Tealstreet and Binance windows open.
- Click the 'Settings' button near the top right corner of the terminal.
- Choose Binance from the dropdown menu.
-
Now you are ready to generate the API Keys within your Binance Account. Head on over to the Binance tab and:
- Click on the User Icon.
- Select API Management from the dropdown menu.
- Choose System Generated and then click Next.
- Now you are ready to create the APs you will need to Trade using Tealstreet.
Create the API
On the Create API page:
- Choose a name for your API Key. It can be helpful to choose a name like Trading-Tealstreet to distinguish between the Trade and Read APIs. You will only see this label on the Binance website.
- When done click on the Next button to start the key creation process.
You can get to this page directly by navigating to this link
- Once you have created the API Key on Binance, you need to click the yellow button titled ‘Edit Restrictions.
- Now you are ready to choose the settings of your API Key.
- ‘API Key’ - This is the key that will be pasted it into the Key field on Tealstreet.
- ‘Secret Key’ - This is the secret that will be pasted it into the Secret field on Tealstreet.
- Select the ‘Enable Futures’ option. Do not enable any other permissions.
- Copy the list of IP Addresses from Tealstreet and then paste them into the ‘Restrict access to trusted IPs only’ field on the edit permissions window of Binance.
- You need to hit the confirm button after you paste in the IPs in order for them to save properly.
- Click ‘Save’
Users MUST use the Whitelisted IP Addresses when creating this API. Please Ensure all IP addresses are correct as shown in the Tealstreet terminal window (images below/above are for reference only)
After editing Key permissions, the dropdown arrow at the top right will minimize the editable fields. Once you minimize this area, you will no longer be able to see your API secret. Make sure you have it saved!
Never share your API Keys with anyone.
Once you have created the API Key on Binance’s website, you are ready to fill out the information on Tealstreet’s API KEYS page.
- Ensure you have selected ‘Binance’ in the Exchange dropdown menu.
- Consider using the Tealstreet referral link to help support Tealstreet development.
-
This guide assumes you want to use the Tealstreet network for trading and whitelisted IP's in the previous section.
- If you want to instead trade from some other location you won't enable this option and you will use some other IP's to whitelist.
-
Choose a name for this API connection. You will see this name on an API on the trading page of the Tealstreet terminal. This is helpful for traders who utilize multiple accounts and/or sub accounts per exchange and want to distinguish between them.
-
Paste the API Key provided by Binance here.
-
Paste the API Secret provided by Binance here.
-
Once you have all the information filled out including both API keys. Press Create.
-
If all the details are correct, you will have successfully linked your Binance account to Tealstreet. Close the Settings page of Tealstreet and Tealstreet will automatically activate and select your most recently added key. If properly linked, you will see your balance/collateral appear in the Margin module of Tealstreet.
- for more information check out our Quick Start Guide.
Be sure not to confuse API Key and API Secret. Connecting your Binance exchange account to Tealstreet will not work if these fields are not entered correctly.
Troubleshooting
In this section we will go over some of the Binance specific issues that may arise.
Error about unable to adjust margin mode
- For now Tealstreet only supports single-asset-mode not the new multi-asset-mode. See more here
Error about order position side not matching
- Please double check your hedge mode vs one-way settings.
Error about "Trading key - invalid api key, ip, or permissions for action"
- Please ensure you are using a futures trading account. Tealstreet does not currently support spot trading.
- Also please ensure you selected the correct permissions for the API key.