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.
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
- Open API Management: on binance.com, the profile icon (top right) → API Management. In the Binance app (Pro mode): More → API Management.
- Press Create API and choose System generated.
- Give it a name you will recognise, for example the name of the app that uses it.
- Confirm with the codes Binance sends you.
- 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:
| Setting | Set it to | Why |
|---|---|---|
| 1. Restrict access to trusted IPs only | ON — the IP of the server that uses the key, then Confirm | The key works only from that address. A stolen key is useless anywhere else. |
| 2. Enable Spot & Margin Trading | ON | Needed to buy and sell on Spot. |
| Enable Reading | ON (already) | The app can see your balances and orders. |
| Enable Withdrawals | OFF | A trading app never needs it. With it off, nobody with the key can move coins out of your account. |
| Everything else (futures, transfers, options…) | OFF | A Spot app does not need it. |
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
- Never send the Secret Key in WhatsApp, Telegram, email or a screenshot. No real support team needs it.
- If anyone asks you to switch Withdrawals on "for trading", it is a scam.
- Make one key per app, so you can delete one without breaking the others.
- Delete keys you no longer use, and look through API Management now and then for keys you do not know.
If a key leaks
- Delete the key in API Management at once. It stops working immediately.
- Check your open orders and your trade history.
- Make a new key with the safe settings above.
- 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
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.
Home · Learn · Terminal · Setup guide · Privacy · Terms · YouTube · Facebook