Articles on: Exchanges

How to Replace an IP whitelist on a live API key

This process describes how to set a new IP whitelist on an API key connected to Altrady.

The most important step is to EDIT your existing trading account in Altrady. Click Edit or RESOLVE, to edit the existing trading account.
DO NOT CREATE A NEW TRADING ACCOUNT, otherwise all data linked to your current trading account will be lost (positions, orders, trades, bots).

The general process is the same for all exchanges.
However, if you are not sure how to access the API key on your exchange, please refer to our documentation on how to add an API key by searching for your exchange at the top of the Support page, and navigate to the API keys page on the exchange. Then follow the process outlined here.

In most cases, it will be possible to EDIT the existing API key on the exchange to update the IP whitelist.
If the exchange does not allow API keys to be edited, then a new API key will need to be created. Jump to Step 9 below.
Additionally, where third-party login has been used (optional for Kucoin and Bybit), a new API key will need to be created. Follow from Step 9.

If third party login was used for Kucoin or Bybit, the API key will be labelled as such in the API key list on the exchange.

Log into Altrady and navigate to Settings>Exchange Account API keys.
In V4.6, Trading Accounts with an invalid IP whitelist will be highlighted with Resolve next to them. In earlier versions, the API key will be disabled, and the option to Edit the key is shown.
For this example the Binance API key is used. The process is very similar on all exchanges.
Note the API key.
Click Resolve or Edit.

The API key is shown in the column next to the trading account name. If you have more than one trading account for the same exchange or more than one API key, check which one to update first.

Click Update API Key or Secret



The IP whitelist will be updated and can be copied from here when needed.



Log into the exchange and navigate to the API keys page.
Match the API key to be updated with the API key on the Trading account in Altrady before making any changes.
Click Edit.
If there is no Edit option for the API key, go to Step 9 below.
Remove each of the IP addresses.
For exchanges other than crypto.com:
paste the new IP whitelist from Altrady, click Confirm. And Save.
For crypto.com, follow step 5a below.

Paste the new whitelist. Then click Confirm. Then Save.

a/ Crypto.com only. This is a two step process. and must be repeated for the main key and each Extra Key.
Step a.
Delete the IP whitelist.
Disable Trading
Save the key

Delete all IP addresses. Disable trading. Save.

Step b.
Copy the IP whitelist from Altrady
Paste the whitelist into the key on crypto.com
Click +Add
Enable Trading permission
Click Save in crypto.com
Click Update in Altrady

Enter the new whitelist. Re-enable trading. Save

If the Trading account has "Extra Keys" (Poloniex, Kraken, Huobi, crypto.com), the IP whitelist must be updated on those API keys on the exchange as well. Use the same IP whitelist.

Some exchanges are allowed extra keys. Update their IP whitelists as well.

In Altrady click Update.



In Altrady, your key should now be active.

Success!

Process for creating a new API key and swapping it over on Altrady.

If the API key cannot be edited on the exchange, EDIT the trading account in Altrady by clicking RESOLVE. and then select Update API key or Secret.



The whitelist will be refreshed and can be copied from here when needed.

Click the icon to Copy.

Next, the API key and secret on your trading account will be replaced by new ones.
Create a new API key on the exchange, following our documentation. It can be found by searching for your exchange at the top of any Support page.
Once the new API key is created with the new IP whitelist, copy and paste the new API key and secret to Altrady.

Copy the new API key/secret to Altrady

Save the API key on the exchange.
And Click Update in Altrady.

Updated on: 02/12/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!