Quick answer: Binance returns -2015 when it rejects the key before running the request: the key or secret is wrong (or belongs to another environment, like testnet), the request came from an IP that isn't on the key's trusted list, or the key doesn't have the permission for that call. A common case: a system-generated (HMAC) key with unrestricted IP access can only have the Reading permission on Binance, so any order call fails.
How to fix it
Check the bot is using the live key and secret against the live API. Testnet keys only work on testnet.
In Binance, open Profile, Account, API Management and look at the key's restrictions. If it's restricted to trusted IPs, add the IP your bot actually sends requests from (a server's public IP, not your laptop's).
If the key is unrestricted and the bot needs to trade: Binance only allows Reading on unrestricted system-generated keys (since 2023-01-30). Add an IP restriction, or use a self-generated Ed25519/RSA key.
If the error appears only on futures calls: a key created before your Futures account was opened can't get the Futures permission. Create a new key after enabling Futures.
Leave Enable Withdrawals off. A trading bot doesn't need it, and Binance requires an IP restriction before it can be turned on anyway.
Still failing? Delete the key, create a fresh one with only Reading plus the trading permission you need, and update the bot's connection settings with it.
Education only. This page never asks for your API keys, passwords or codes, and you should never share them with anyone. Not financial advice. Facts last checked 2026-11-20 against the linked sources.
Frequently asked questions
What does Binance API error -2015 mean?
Binance returns -2015 when it rejects the key before running the request: the key or secret is wrong (or belongs to another environment, like testnet), the request came from an IP that isn't on the key's trusted list, or the key doesn't have the permission for that call. A common case: a system-generated (HMAC) key with unrestricted IP access can only have the Reading permission on Binance, so any order call fails.
Does -2015 mean my account is hacked?
Not by itself. It means Binance rejected the key, IP or permission for that request. If you see trades you didn't make, delete all API keys first, then change your password.
Should I enable withdrawals to fix -2015?
No. Withdrawals have nothing to do with trading calls. Keep them off.
Open now · invite-only
Pre-registration is open. Join with this referral link
Pre-registration is open and invite-only: you join through a member referral link. Use the Join Quantaira button to sign up.