Help center · Something's wrong
Why did Binance refuse my key, and how do I fix it?
Binance rejected the key itself, so auto-trading is switched off: create a new key with Enable Futures ticked, restricted to IP 91.99.78.29, save it at hafizebot.com/app/keys, then send /on.
The message you got: "Auto-trading is switched off: Binance refused your API key (invalid key, IP or permissions)" or, after /on, "Auto-trading stays off: Binance refused your API key (error -2015 …)".
What it means. Binance answered with one of its key errors before looking at any order: -2015 (invalid key, IP or permissions), -2014 (the key's format is wrong), -2008 (no such key) or -1022 (the signature does not match, usually a secret copied wrong). A key that fails once fails on every request until it is replaced, so the bot switches auto-trading off instead of retrying. This can happen when you send /on, when the bot starts up, or while it is trading. Positions already open on Binance are not touched.
The usual causes:
- Enable Futures is not ticked on the key (see Enable Futures is off).
- The IP restriction is not exactly 91.99.78.29, or the key is restricted to a different IP.
- The key was deleted or replaced in Binance API Management.
- Your Futures account is not opened yet on Binance.
- The key or secret was pasted with a missing or extra character.
What to do:
- In Binance API Management, create a new key: tick Enable Futures, leave Enable Withdrawals off, and restrict it to 91.99.78.29.
- Log in at hafizebot.com/app/keys with Telegram and paste the key and secret there, never in a chat.
- Send
/onin @hafizebot. The bot asks Binance once before switching on, so it tells you straight away if the key is still refused.
Step by step: How do I connect my Binance API key?. More on this error: Invalid API-Key, IP or Permissions.
Updated 2026-10-11.
Related
- Why is the bot not opening any trades?
- Why did Binance refuse my order?
- Why does the bot say Enable Futures is off on my key?
- Why was auto-trading switched off for insufficient margin?
- What is the TradFi-Perps agreement, and why are those coins skipped?
- Why was my order refused for Multi-Assets mode?
Not a member yet? Try VIP free for 3 days, auto-trading included.
Still stuck? Send /support to @hafizebot with your question, or write to [email protected]. Futures trading carries a high risk of loss; nothing here is investment advice.