Skip to main content
All CollectionsExchanges & APIAPI Issues
Troubleshoot API connection issues
Troubleshoot API connection issues

Here you can find several reasons why you can get the invalid API keys error.

Updated over a week ago

KYC and API keys permission updates

Please make sure you have passed KYC on your exchange or your API permissions have not expired.

Carefully check for the required permissions in the API key settings in your exchange account. Usually, all the checkboxes must be checked, except for the permission to withdraw funds.

But some exchanges must have special settings. Take a look at this section in our Help Center and learn more about the specifics of connecting the API for each exchange:

Almost all exchanges now require the IP whitelisting

You need to update the existing API keys on your exchange and add the IP addresses whitelist.

If this doesn't help, you need to create new API keys with IP whitelist and update your current active API connection.

The complete list of exchanges with IP addresses whitelists can be found in this article:

Duplicate API

Although users cannot connect the same exchange account more than once, the following reason may still exist for some old users.

Make sure that you haven't connected the same API multiple times to 3Commas:

Multiple connections of the same exchange may cause these errors. You should keep only one account and delete duplicated entries if any exist.

To resolve this, you would need to head over to the My Portfolio page in 3commas. From here, you will see all of your connected exchange APIs. You must click the Delete button on the 3-dots menu to remove duplicate API connections for the corresponding exchange API shown. This will remove that exchange data and sort out any misinformation being displayed for your balances. Example:

If you see an error while trying to remove a duplicate exchange account, you should finish active trades on it (close them or cancel) and then delete the account.

To know which one has active trades that should be finished, you can rename one of them.

🔹 You might need to update the API keys being used to connect your exchange account to 3Commas

This article will help you update the API keys correctly and keep your active trades/bots and trading history safe:

Sometimes, when you see the error, it is just a temporary/brief communication issue that is resolved by itself quickly and won't affect the trade.

You would only need to change the API keys if you get an API keys error when you go to the My Portfolio page and then click the refresh button by the linked exchange account:

Here is another useful article related to this issue:

If none of the above helped and you are still seeing the error, please, contact 3Commas support via email at [email protected] or a widget at the right bottom corner of the screen.

Did this answer your question?