Causes of an inactive API
Message 'Error in API key' or API is inactive
Message 'Error in API key' or API is inactive
After the user has activated the API key, there are a number of possible causes why the API becomes inactive again:
- You disabled the key yourself in the dashboard of the exchange.
- The exchange invalidated the key or a function within it for its own reasons. Binance, for example, invalidates the “Enable spot & margin trading” setting every 30 days for users who do not have an IP address on the IP whitelist.
- There is an error in the connection between BBT and the exchange.
How do I restore an inactive API key?
How do I restore an inactive API key?
1
Log in to the exchange
Go to the dashboard of the exchange in question and log in with your account details.
2
Check and restore the API settings
Go to the API settings of the exchange and reactivate the key. Check that all required permissions are correctly set (see below per exchange).
3
Save in BBT
In BitBrokerTrade, go to Settings → Exchanges and click on the inactive exchange. In the new screen that opens, enter the new API keys and click on Save.
4
Wait for the connection test
BBT now automatically tests the connection. If the API settings are correct, the connection is back to Active.
API key given too many permissions (withdrawals allowed)
API key given too many permissions (withdrawals allowed)
BBT only needs permissions for reading and trading (spot trading). Permissions for withdrawals are not needed and form a security risk.If you have accidentally enabled withdrawals on the API key, remove the key at the exchange and create a new one with only the required permissions. Then enter the new key through Settings → Exchanges in BBT.
Confirmation email from the exchange not clicked
Confirmation email from the exchange not clicked
At some exchanges (including Bitvavo, Bitstamp and Binance without 2FA via Google Authenticator) the exchange sends a confirmation email after you create a new API key. You must first click the link in that email to activate the key.If you entered the API key in BBT before opening the confirmation email, BBT will see the connection as inactive. Check your inbox and click the confirmation link. Then repeat steps 3 and 4 of the restore process above.
2FA not set up while the exchange requires it
2FA not set up while the exchange requires it
Some exchanges require you to have two-factor authentication (2FA) set up before you can activate an API key. If 2FA is missing, the key will remain inactive or cannot be created.Set up 2FA through the security settings of your exchange account (e.g. through Google Authenticator). Then you can create or reactivate the API key.
Exchange-specific guides
Follow the connection guide of your own exchange for the exact steps:Binance
API settings for Binance, including IP whitelist and spot trading permissions.
Bitvavo
Create and connect an API key at Bitvavo.
Bitstamp
API configuration for Bitstamp.
Coinbase
Set up an API key at Coinbase.
KuCoin
API connection for KuCoin.
Bybit
Create and connect an API key at Bybit.