Rate limits
How it works
REST uses a shared weighted budget per rolling 1-minute window:
| Dimension |
Applies to |
Window budget |
| IP |
Public market / metadata |
6000 weight points / minute |
| UID |
Authenticated trading, common, and wallet paths |
6000 weight points / minute |
- UID is the account bound to the API key.
- Unsigned public requests are counted on IP only.
- Each request consumes that endpoint’s weight. Endpoints that share a dimension share the same 6000-point pool for the window — mixed traffic leaves less headroom than calling one endpoint alone.
- Approximate calls per minute if that endpoint alone uses the whole window:
6000 ÷ weight.
- Endpoints without an explicit weight default to weight 1 on the IP dimension (when default weights are enabled).
- Response header:
X-SAPI-USED-<mode>-WEIGHT-<INTERVAL>
Example: X-SAPI-USED-IP-WEIGHT-1M: 42. Back off as used weight approaches the budget.
When a limit is hit
Clients must handle both responses:
| Case |
HTTP |
Headers |
Body (approx.) |
| Ordinary over-limit |
429 |
Retry-After: 0 (URL-encoded), plus the used-weight header when available |
{"code":-1003, "msg":"Too many requests; current request has limited."} |
| Repeated over-limit (default after 50 ban increments) |
418 |
Retry-After: <seconds remaining> (URL-encoded), ban until time in msg |
{"code":-1003, "msg":"Too many requests; <IP\|UID> banned until <UTC time>."} |
(TOO_MANY_REQUESTS = -1003.)
Weight reference
| Weight |
≈ max calls/min (alone) |
| 1 |
6000 |
| 2 |
3000 |
| 4 |
1500 |
| 6 |
1000 |
| 10 |
600 |
| 20 |
300 |
| 25 |
240 |
| 50 |
120 |
| 80 |
75 |
| 1200 |
5 |
Endpoint weights
Paths match the public REST reference. Depth and ticker weights are fixed per path (not scaled by limit or symbol count).
| Method |
Path |
Weight |
≈ max calls/min |
| GET |
/openapi/v1/ping |
1 |
6000 |
| GET |
/openapi/v1/time |
1 |
6000 |
| GET |
/openapi/v1/user/ip |
1 |
6000 |
| GET |
/openapi/v1/pairs |
20 |
300 |
| GET |
/openapi/v1/exchangeInfo |
20 |
300 |
Market data — IP
| Method |
Path |
Weight |
≈ max calls/min |
| GET |
/openapi/quote/v1/klines |
2 |
3000 |
| GET |
/openapi/quote/v1/avgPrice |
2 |
3000 |
| GET |
/openapi/quote/v1/ticker/bookTicker |
4 |
1500 |
| GET |
/openapi/quote/v1/ticker/price |
4 |
1500 |
| GET |
/openapi/quote/v1/trades |
25 |
240 |
| GET |
/openapi/quote/v1/depth |
25 |
240 |
| GET |
/openapi/quote/v1/ticker/24hr |
80 |
75 |
Spot trading — UID
| Method |
Path |
Weight |
≈ max calls/min |
| POST |
/openapi/v1/order |
1 |
6000 |
| POST |
/openapi/v1/order/cancel |
1 |
6000 |
| POST |
/openapi/v1/order/cancelAll |
1 |
6000 |
| POST |
/openapi/v1/order/cancelReplace |
1 |
6000 |
| GET |
/openapi/v1/order |
4 |
1500 |
| GET |
/openapi/v1/openOrders |
6 |
1000 |
| GET |
/openapi/v1/historyOrders |
20 |
300 |
| GET |
/openapi/v1/myTrades |
20 |
300 |
Common — UID
| Method |
Path |
Weight |
≈ max calls/min |
| GET |
/openapi/v1/account |
20 |
300 |
| GET |
/openapi/account/v3/crypto-accounts |
20 |
300 |
| GET |
/openapi/v1/asset/tradeFee |
20 |
300 |
| GET |
/openapi/v1/asset/transaction/history |
50 |
120 |
Wallet — UID
| Method |
Path |
Weight |
≈ max calls/min |
| GET |
/openapi/wallet/v1/config/getall |
10 |
600 |
| GET |
/openapi/wallet/v1/deposit/history |
10 |
600 |
| GET |
/openapi/wallet/v1/deposit/address |
10 |
600 |
| GET |
/openapi/wallet/v1/deposit/addresses |
1 |
6000 |
| POST |
/openapi/wallet/v1/withdraw/apply |
1200 |
5 |
| GET |
/openapi/wallet/v1/withdraw/history |
1200 |
5 |
User data stream (listenKey)
POST /openapi/v1/userDataStream, POST /openapi/v1/userDataStream/update, and POST /openapi/v1/userDataStream/close count toward the UID budget. Avoid tight polling loops. Keep the listenKey alive at least every 30 minutes (see Private user data).
WebSocket
WebSocket connection limits are separate from REST weight limits.
| Limit |
Value |
| Client messages |
25 / second / connection |
| Ping interval |
20 s |
| Ping timeout |
120 s |
| Idle (public, no subscriptions) |
60 s disconnect |