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.
| Use | Cost |
|---|---|
| Market data (REST/WS) | Free |
| Spot trading fee | ~0.1% (less with BNB / VIP) |
| USDⓈ-M futures (taker) | ~0.04% |
| API access | Free |
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.
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.
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.