Rate limits

Connections

LimitValueWhen you go over it
Connections per IP address10HTTP 429 Too many connections from this IP
Connections per accountKeep to 25, across all of the account's API keysOpening more can close your oldest connection, with close code 1008
Failed connection attempts per IP address5One attempt allowed every 30 seconds; the others get HTTP 429 with a Retry-After header
  • The IP address is your public address, so systems that share one outbound address share the 10 connections.
  • Failed attempts are missing or invalid credentials, a disallowed origin, and a bad handshake. Server-side errors and the per-IP connection limit do not count. The lockout applies to every connection from that address, valid keys included, so one client with a bad key can lock out others sharing the address.

Messages and subscriptions

LimitValue
Messages you send per minute, per connection100, in bursts of up to 10
Channel subscriptions per connection50

The 100 messages per minute limit is refilled steadily: after a burst of 10, one more is allowed about every 0.6 seconds. It covers everything you send other than valid order commands (subscribe, unsubscribe, auth, ping). Over it, the reply is RATE_LIMITED.

Valid order commands do not count toward it. place_order has the order limits below, and cancels have the cancel limit. Order commands that can never become an order do count: malformed ones, ones without a usable id, any sent on a connection that cannot trade, and any frame over 4KB. Once that budget is spent they are answered RATE_LIMITED; valid commands are unaffected.

Orders

These are the REST API's limits, and the counts are shared with REST. Details are on Placing and cancelling orders.

LimitCountedRefused with
Orders per minutePer account and trading pair, unless your account has an account-wide limit, which then covers all pairs together. Shared with REST.ORDER_RATE_LIMIT_EXCEEDED
Max open ordersPer account and order type; orders acked but not yet live count tooORDER_LIMIT_EXCEEDED
Cancels per secondPer API key, shared with REST; cancel_order and cancel_all_orders each on their own counterRATE_LIMITED
Refused orders per secondPer API key, across your connections; as many as the key's requests per secondRATE_LIMITED
Commands in progress16 running and 256 queued per connection; must start within 5 seconds of arrivingBUSY

A requests-per-second limit of 0 means the credential is switched off: every order command is answered RATE_LIMITED.

Checking your limits and usage

GET /api/trading/rate-limits on the REST API returns your current limits and how much of each you have used, including cancels sent over the WebSocket. For each trading pair, orders_per_minute[] shows:

FieldDescription
limitOrders per minute; 0 means no limit
scopeuser_symbol: this pair has its own count. user: one count shared by all pairs (an account-wide limit).
sourceWhere the limit is set: user_symbol (your account, this pair), user (your account, all pairs), pair (this pair's default), global (the exchange default) or none
used, remaining, resets_in_msUsage in the current minute

Did this page help you?