Skip to content
Sign up

Get started

Rate limits

Generous limits, stated in every response, so your client can pace itself instead of guessing.

Limits#

WhatLimit
Public endpoints600 requests a minute per IP address
Candles, history, order book and trades120 requests a minute per IP address, counted within the 600
Streams6 open at once and 30 new connections a minute per IP address
Private endpoints600 requests a minute per account, 3,000 for a company account
Writes50 a second per account, 250 for a company account

Writes are orders, conversions, transfers and every other change. Every sub-account has a budget of its own, and cancels never count as writes, so a kill switch always goes through. Signed requests count against your account's budget and never against the public limits. As a last line, one address can send 6,000 requests a minute with an API key and 1,800 without one, and an address that sends 30 requests in a minute with a wrong key, timestamp or signature waits until that minute is over. Need more? Talk to the desk.

Read your budget#

Every response carries the standard rate-limit headers, with one entry for each limit the request counts against, under that limit's name: q is the requests allowed in the window, w the window in seconds, r what is left and t the seconds until the window starts over.

HTTP
HTTP/1.1 200 OK
Content-Type: application/json
RateLimit-Policy: "signed.address"; q=6000; w=60; pk=:NTA4Y2MwZmUyNjE4:, "signed.requests"; q=600; w=60; pk=:ZjRhMmIxOWM3ZDNl:
RateLimit: "signed.address"; r=5983; t=31, "signed.requests"; r=583; t=31

Over the limit#

A request over the limit gets 429 and a Retry-After header in seconds. Wait that long and carry on; requests sent before then are refused as well.

HTTP
HTTP/1.1 429 Too Many Requests
Content-Type: application/json
Retry-After: 31

{"error":"rate_limited"}

For prices that move every second, subscribe to a stream instead of polling. One subscription replaces hundreds of requests a minute, and the data arrives sooner.