Skip to main content

Why do I see error '-2008 Invalid API-Key ID' in my Binance trading bot?

This error means your Binance API key is no longer valid. Re-generate your API keys following our Binance connection guide to fix it.

Written by Pete Darby
Updated this week

The error -2008 Invalid API-Key ID appears in your trading bot output when your Binance trading bot can't connect to Binance because the API key is not valid.

Example of the error message in the trading bot output:
Binance error. Code: -2008 Message: Invalid Api-Key ID.

How to fix it

Re-generate your Binance API keys and reconnect them to Cryptohopper by following our step-by-step guide: How to generate new API keys for Binance.

Verify the error is resolved

After reconnecting, check your trading bot output to confirm the error no longer appears. Your bot will resume normal activity on the next trading cycle.

Did this answer your question?