Spot Terminal Pro

How to create a Binance API key safely

Updated 25 October 2026 · 3 min read

A trading terminal or a bot needs an API key to trade on your Binance account. Made the right way, the key can place trades but can never move your money out. Here are the steps and the settings.

On this page
  1. What an API key is
  2. Before you start
  3. Create the key, step by step
  4. The safe settings
  5. Which IP to add
  6. Keep the key safe
  7. If a key leaks

What an API key is

An API key lets an app trade on your Binance account without your password. It has two parts: the API Key (like a user name) and the Secret Key (like a password). Whoever has both can do what the key allows — so a key is only as safe as its settings.

Before you start

Binance usually asks first that you have 2FA switched on, your identity verified and a deposit in your Spot wallet.

Create the key, step by step

  1. Open API Management: on binance.com, the profile icon (top right) → API Management. In the Binance app (Pro mode): More → API Management.
  2. Press Create API and choose System generated.
  3. Give it a name you will recognise, for example the name of the app that uses it.
  4. Confirm with the codes Binance sends you.
  5. Copy the API Key and the Secret Key now — into the app that uses the key, before you change anything else. Binance shows the Secret Key only once.

The safe settings

On the new key press Edit restrictions and set it in this order — Binance unlocks Enable Spot & Margin Trading only after a trusted IP is added:

SettingSet it toWhy
1. Restrict access to trusted IPs onlyON — the IP of the server that uses the key, then ConfirmThe key works only from that address. A stolen key is useless anywhere else.
2. Enable Spot & Margin TradingONNeeded to buy and sell on Spot.
Enable ReadingON (already)The app can see your balances and orders.
Enable WithdrawalsOFFA trading app never needs it. With it off, nobody with the key can move coins out of your account.
Everything else (futures, transfers, options…)OFFA Spot app does not need it.
By Binance's own rules, a System generated key without an IP restriction can only read — it cannot trade. One more reason to add the trusted IP.

Which IP to add

Add the IP address of the computer or server where the app or bot runs. A server (VPS) has a fixed IP. The IP of your home or mobile internet usually changes, so it is not a good choice — the key would stop working when it changes.

Keep the key safe

If a key leaks

  1. Delete the key in API Management at once. It stops working immediately.
  2. Check your open orders and your trade history.
  3. Make a new key with the safe settings above.
  4. If you think more than the key was seen, change your Binance password and 2FA as well.

Binance Connect in Spot Terminal Pro

With Pro, Binance Connect walks you through these steps in 4 short screens and shows the IP of our server with a Copy button. Your key is stored encrypted on our server and used only for your trades. Withdrawals stay off, so the key cannot move your money out.

Questions

Is it safe to give an API key to a trading bot?

With withdrawals off and an IP restriction, the key cannot move money out and cannot be used from anywhere else. It can still trade, so only use apps you trust.

Can I see my Secret Key again later?

No. If you lost it, delete the key and make a new one.

System generated or self-generated?

System generated: Binance makes both parts for you (HMAC). Self-generated (Ed25519 or RSA): you make the key pair yourself with other software. Most trading apps, including ours, use System generated keys.

Does the key need Futures permission?

Not for Spot trading. Leave everything you do not need switched off.

Read next

Binance OCO order explainedTake-profit and stop-loss in one order: how it works, a worked example and the price rules. Binance auto trading bot, 24/7A strategy trades your Binance Spot account from our server, every trade with TP and SL.

Trading is risky and you can lose money. This article is general information, not financial advice. Spot Terminal Pro is an independent tool and is not affiliated with Binance.