Binance API keys with unrestricted IP access are only valid for 90 days. After the API key expires, the Enable Spot & Margin Trading permission gets automatically disabled. To continue using Bitsgap with your Binance account, it is necessary to update your Binance's key permissions.

Here is what you can do to re-activate your expired API key:

  1. Enable Spot & Margin Trading permission

  2. Re-establish the API connection with a new key

  3. Add trusted IP addresses to the existing API key

Enable Spot & Margin Trading permission

1. Open the API management page on Binance.

Head to the My Exchanges tab, click on the [Renew] button next to your expired API key, and then continue with [Renew API key]:

You will be forwarded to the Binance API Management page automatically.

2. Click the [Edit restrictions] button next to your Bitsgap API key, as shown below.

3. Enable all the required permissions as follows and save them.

Check your API's key permissions and activate Enable Spot & Margin Trading option. When ready, click the [Save] button.

4. Refresh the API key connection.

When the key is renewed, open Bitsgap, click on the [More] button (three dots) next to Binance, and then hit [Refresh].

The system will check the permissions you have chosen for your API key and, if successful, establish a connection. The status of your API connection will reflect when the key needs to be manually updated again:

Re-establish the API connection with a new key

If you want to avoid the expiration of your API keys permanently, follow the instructions below to whitelist Bitgap's IPs on Binance. We strongly recommend doing it as this provides extra security to your Binance account and discards the necessary API key renewal every 90 days.

There are 2 ways to renew the API connection:

  1. Fast Replace.

  2. Replace via creating a new API key manually.

🚀 Fast Replace

1. Go to Bitsgap > My Exchanges page.

After you open the tab, click on the [More] button (three dots) next to the Binance connection and then hit [Replace API key].

2. Proceed renewing the API key with the [Replace] button.

3. Check the connection status.

Once clicked on [Replace], the system will automatically create a new API key for your Binance account called Bitsgap_com and connect it to Bitsgap. The automatically generated API key will contain all the settings required for trading and will allow access to our trusted IP addresses:

On Bitsgap, the Binance API connection will have the Connected status:

🛠️ Replace via API keys

1. Go to Bitsgap > My Exchanges page.

Once you opened the tab, click on the [More] button (three dots) next to the Binance connection and then hit [Replace API key].

2. Copy Bitsgap's IP addresses.

In the Replace via API keys window, copy the list of trusted IP addresses (simply by clicking on the 'Copy' sign) and save them somewhere for now (in a notepad, for example). We will need these IPs later when setting up your API permissions.

3. Log in to Binance.

Log in to your Binance account or create a new one.

3.1. Open Futures Account (optional).


📑 Note: This is required if you want to connect your Binance Futures account. You can skip this step if you trade on the Spot market only.


Go to your Wallet > Futures and follow the instructions provided by the Binance exchange. When you complete all steps, your Binance Futures account will be open, allowing you to trade on your Binance futures account via Bitsgap.

4. Go to the API Management page.

From your account settings (top-right corner), navigate to the API Management page.

5. Create and label your API key

To set up a new API key, click [Create API] and then give it any name (it is your personal choice), so you can easily understand that this key is connected to your Bitsgap account.

6. Copy your API key and Secret key

Before we edit the permissions of your API key, make sure to copy your API key and Secret Key somewhere safe. Otherwise, after editing API key permission, the Secret key becomes hidden, and you would need to start over again.

7. Match API key restrictions

Now you need to edit the restrictions of your API key - this will allow our platform to process your trading activity on your Binance account. Please, click [Edit restrictions] as shown below and follow the further instructions.

Here is the list of required permissions:

  1. Enable Reading on (active by default).

  2. Enable Spot & Margin Trading on.

  3. Enable Futures on (optional).

  4. IP Access restrictions: Restrict access to trusted IPs only (insert the IPs copied from the My exchanges tab).

  5. Click [Confirm] to save the pasted IP addresses.

  6. When ready, click [Save].

8. Go back to the My Exchanges tab and paste the API info.

In the Replace Binance API key window:

  1. Pick Replace via API keys.

  2. Paste your API key.

  3. Paste your Secret key.

  4. Click [Replace]:

9. Check the connection status.

If everything is done correctly, you will see Binance with the Connected status and the trading balance available on your account.

Add trusted IP addresses to the existing API key

If you want to keep using the current API key and avoid the necessary API renewal every 90 days, you can add Bitgap's IP addresses to the existing Binance key.

1. Go to Bitsgap > My Exchanges page.

Once you opened the tab, click on the [Extend] button (or [Renew] if the API key has the "Expired" status) next to the API status.

2. Copy Bitsgap's IP addresses.

In the pop-up window, copy the list of trusted IP addresses (simply by clicking the 'Copy' icon) and save them somewhere for now (in a notepad, for example). We will need these IPs later when setting up your API permissions.

3. Hit the [Extend/Renew API key] button.

After that, you will be automatically forwarded to the Binance API Management page.

4. Find your Bitsgap API key and click the [Edit restrictions] button next to it.

5. Match the API key restrictions.

Now you need to edit the restrictions of your API key.

  1. Re-activate the Enable Spot & Margin Trading permission (if necessary).

  2. IP Access restrictions: pick the Restrict access to trusted IPs only option and insert the IPs copied from the My exchanges tab.

  3. Click [Confirm] to save the pasted IP addresses.

  4. When ready, click [Save].

6. Refresh the API key connection.

When the key is renewed, open Bitsgap, click on the [More] button (three dots) next to Binance, and then hit [Refresh].

The system will check the permissions you have chosen for your API key and, if successful, establish a connection. You will see Binance with the Connected status and the trading balance available on your account.


🔔 Follow us and stay connected!

Bitsgap Blog

Twitter

Telegram

Facebook

Instagram

Discord

Reddit

Did this answer your question?