HomeAPIs › Binance

Binance API — how to get keys, cost & limits

Binance has the deepest liquidity in crypto and a powerful API for spot, futures (USDⓈ-M & COIN-M), margin and market data over REST and WebSocket. Here's how to get keys and what it costs.

What the API does & cost

UseCost
Market data (REST/WS)Free
Spot trading fee~0.1% (less with BNB / VIP)
USDⓈ-M futures (taker)~0.04%
API accessFree
⚠️ The Binance API is free to use — you only pay trading fees on the trades it places. Fees and limits change; confirm on the official docs. Market-data (read-only) endpoints cost nothing.
New to Binance?
Create an account with our referral link — new users often get a trading-fee discount. You support APICostCalc (we earn a small share of fees, at no extra cost to you).
Sign up on Binance →

How to get your Binance API keys (step by step)

1. Sign up / log in at binance.com and complete identity verification (KYC) — required for API trading.
2. Go to Account → API Management.
3. Click Create API, choose System generated, label it, and verify by 2FA/email.
4. Copy the API Key and Secret — the secret is shown only once.
5. Set permissions (enable only what you need: Reading, Spot Trading, Futures) and restrict access to your server IP.

Quick test

# public market data — no key needed
curl "https://api.binance.com/api/v3/ticker/price?symbol=BTCUSDT"

Security — read this

Never share your secret; it can't be recovered (regenerate if leaked). For data-only bots, enable Reading only. Always whitelist your IP. Disable withdrawals on API keys unless you absolutely need them — a leaked withdraw-enabled key drains your account.

Alternatives

Bybit and OKX have similar APIs with lower derivatives fees; for pure price data, CoinGecko is simpler. See Bybit and OKX.

Browse all API guides → · trade safely — size positions with RektCalc.

Not affiliated with Binance. Exchange link is a referral link.