Articles on: Exchanges

How to Connect Your Binance Exchange Account with Altrady

To get started with seamless trading experience on Altrady, you need to connect your cryptocurrency exchange with our platform. In this guide, we have illustrated 12 easy steps that will help you to connect your 'Binance exchange' account with 'Altrady' via API.

Binance is the most popular cryptocurrency exchange in the world with more than 15 million users across the globe 💡

Step-1: Enter Binance URL in your browser and login to your account.



Step-2: After signing in, navigate to your dashboard bar, click on Account, and select API Management. Alternatively, you can click on the profile icon in the top-right corner, select Account from the drop-down menu, then click on API Management from the menu on the left.





Step-3: Click on Create API.



Step-4: Choose the API key type. Select System Generated, then click Next.



Step-5: Now create the API by assigning it a name. Here we have assigned the name - Altrady as an example. Hit the Next button once done.



Step-6: Click on Email and Phone Number respectively, to request that a six-digit code is sent to you. Enter the six-digit code for each one, into their relevant fields, then click Submit.







Step-6a: Binance will redirect you to a new page where you will be provided with your API key as well as a Secret key. Now, copy these two codes and visit Altrady website.



Step-7: If you haven't already done so, login to your Altrady account and click on the Settings icon appearing in the left hand side of the interface.
Then choose Exchange account API keys.
And click + Add API Key.



Step-8. A new pop-up will appear on your screen for adding the API Key.
Select Binance,
Give your API key a label,
and enter your Binance API key and Secret key generated at Step-6a. Do not close or save this window yet.





**Step-9:**

Go back to Binance, click Edit Restrictions, then click on Restrict Access To Trusted IPs Only.



Step-9a: Copy the list of 20 IP addresses from Altrady, by clicking on the copy button.

!Returning users! note: if you do not see this box to copy the IP addresses, please update to the newest version of Altrady



Step-9b: Paste the IP addresses into the relevant field and check that all 20 IP addresses have been added.





Step-10: Click Save once all 20 IP addresses have been copied and saved.



Step-11.
You can use the same API key to add a Binance Spot and Futures account at the same time.
If you do, they will be listed as separate API keys in your list.

Or, you can choose to only create a trading account for Spot or Futures.
If you're not sure, it won't hurt to add both at the same time.

If you select Futures, then Futures trading must have been selected in Step 6.



Step -12: Hit the Save button after entering all the information.



Step -13: Click on the Add button.



Step-14: You have successfully connected your Binance exchange account with Altrady.

If you selected to enable both Spot and Futures, you will see a Trading Account for each, in your list of API keys.

In the Markets widget, you will find Spot markets for Binance, by selecting Binance from the left and then clicking on Spot. For Futures markets, click on Futures after Binance has been selected.



Edit the API key details anytime by selecting the edit option in Settings > Exchange Account API keys.



If your balances haven't yet updated from the exchange, find out how to quickly update them:



Updating your Binance API key



Jan 2022: Binance has announced that they will delete all unbound API keys (those with no IP whitelist), 30 days after the key was created.

Altrady needs to use dozens of IP addresses that are updated frequently, in order to avoid exchange rate limit errors.
We are talking with Binance about ways to bind our IP addresses and hope to have a solution from them soon.
In the meantime, this is what to do to keep your Binance account active in Altrady.
Around 7 days prior to deletion, Binance will send a reminder notice to your Binance account email address, letting you know when you key/s will be deleted. Make sure Binance's email address is whitelisted in your email app. When the email is received, set a reminder to update your keys before this date.
When that time comes, create a new API key on Binance, using the same steps as above.
Tick the Futures permission to use the same API key for your Futures and Spot accounts in Altrady.

Make sure the permissions on your new key match those shown in Step 8 above.

In Altrady, EDIT your current Binance API key.

You can click edit on either account (Binance Futures or Binance). They both use the same key.

Do not delete your old API key in Altrady unless you want a complete reset. Deleting a key results in the loss of all data for trades, orders, positions and analytics.



Replace your existing Key and Secret with those for your new key.



When you click Update, your old key will immediately be replaced with the new one in Altrady
Delete your old API key in Binance.

Replacing your API key is a seamless process, as long as:
Your API key in Altrady is replaced before the old one is deleted by Binance, or expires.
The new key is valid and has the correct permissions (see Step 6, above).
Your bots, positions and orders will be unaffected by changing to a new key.

How to add an IP whitelist to your Binance API Keys


Go to Settings>Exchange API Keys
Edit your Trading Account (API Key) in Altrady to locate the set of IP Addresses for the API Key


Here you can see the list of allocated IP addresses for this API key.
These IP addresses are linked to the key in Altrady. This list of IP addresses will not work with any of your other API keys.



Log into your Exchange account and navigate to the API keys page.
If you have more than one API key for this exchange, find the correct one. You can check the API key in Altrady and make sure you have the correct one.

Click Edit.


Enable IP whitelisting
On our exchange, it might be called Trusted IPs, IP binding, IP addresses, or IP Whitelist.


Copy the list of 20 IP addresses from Altrady and paste them.
On some exchanges you must click Confirm.


Check that all 20 IP addresses have been added


Finally, click Save to save the added IP addresses.


See related topic: How to add an IP whitelist to your API keys

Now you can start leveraging the robust features that Altrady has to offer.
If you have any questions, please feel free to chat with our Customer Support Service, linked at the bottom of this page.

Updated on: 04/10/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!