Skip to content
Independent, unofficial guide. Not affiliated with or operated by Quantaira, Endotech or CoinZoom.

Binance error -2015 "Invalid API-key, IP, or permissions for action": causes and fix

API key safety checklist › error fixes

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

  1. Check the bot is using the live key and secret against the live API. Testnet keys only work on testnet.
  2. 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).
  3. 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.
  4. 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.
  5. Leave Enable Withdrawals off. A trading bot doesn't need it, and Binance requires an IP restriction before it can be turned on anyway.
  6. 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.

Sources

Before reconnecting any bot, read how to join Quantaira, then the 10-point safe API key checklist and the bot red flags.

Getting a CoinZoom key ready for Quantaira's staged Dec 1 launch instead? See the launch-wave table and the CoinZoom setup guide, and read the critics too.

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.

After you join, you connect your own CoinZoom account. CoinZoom setup guide.

Pre-registration is open. Join with this referral link.

Join Quantaira

Pre-registration is open and invite-only. Use the referral link above to sign up.

After you join, you connect your own CoinZoom account. Setup guide.

How to join Quantaira safely