Rate limits
Two per-minute limits on every /api/v1 route, counted in the database: one per API key, and one per tenant across all its keys.
Status
Every /api/v1 request with a credential passes one gate that authenticates the key, checks the scope, meters the call and resolves the tenant's mode. Every keyed call counts against the budget.
Two browser routes sit outside the key gate, because neither can hold a key: GET /api/v1/images/{id} (an <img>) and GET /api/v1/stream/prices (an EventSource). Both are still limited. Images are metered per client address at 300 a minute and cached. Over that, images answer 429 rate_limited with a Retry-After header and the three RateLimit-* headers, and retryAfterSeconds in the body. The stream caps connections, contracts per connection and total instruments, meters a session that presents one, and still applies an operator's offering policy. A stream at capacity answers 503 stream_capacity with a Retry-After.
| Endpoint | Scope |
|---|---|
GET /api/v1/audit | ledger:read |
GET /api/v1/categories | markets:read |
POST /api/v1/combos/orders | orders:write |
GET /api/v1/combos/orders/{id} | orders:read |
GET /api/v1/combos/positions | positions:read |
POST /api/v1/combos/quotes | quotes:write |
POST /api/v1/embed-sessions | orders:write |
DELETE /api/v1/embed-sessions/{id} | markets:read |
GET /api/v1/events | markets:read |
GET /api/v1/events/{id} | markets:read |
POST /api/v1/funding/deposit-address | funding:write (sandbox only) |
GET /api/v1/funding/deposits/{id} | funding:write (sandbox only) |
GET /api/v1/funding/supported-assets | funding:write (sandbox only) |
GET /api/v1/images/{id} | No key and no scope. Metered by client address, not by tier. See below. |
GET /api/v1/operators/children | orders:read |
GET /api/v1/orders | orders:read |
POST /api/v1/orders | orders:write |
GET /api/v1/orders/{id} | orders:read |
POST /api/v1/orders/{id}/cancel | orders:write |
POST /api/v1/orders/{id}/confirm-reserve | orders:write |
GET /api/v1/orders/{id}/confirmation | orders:read |
GET /api/v1/players/{id}/activity | players:read |
GET /api/v1/players/activity | players:read |
GET /api/v1/positions | positions:read |
GET /api/v1/positions/{id} | positions:read |
POST /api/v1/quotes | quotes:write |
GET /api/v1/reconciliation | ledger:read |
GET /api/v1/reconciliation/feed | ledger:read |
POST /api/v1/sandbox/resolutions | settlements:read (sandbox only) |
GET /api/v1/sandbox/scenarios | orders:read (sandbox only) |
POST /api/v1/sandbox/scenarios | orders:write (sandbox only) |
GET /api/v1/settlements | settlements:read |
GET /api/v1/settlements/positions | settlements:read (deprecated) |
GET /api/v1/status | orders:read |
GET /api/v1/stream/prices | No key and no scope. Metered by client address, not by tier. See below. |
GET /api/v1/system-status | No key and no scope. Metered by client address, not by tier. See below. |
GET /api/v1/system-status/feed | No key and no scope. Metered by client address, not by tier. See below. |
GET /api/v1/users/{id}/balance | ledger:read (sandbox only) |
GET /api/v1/users/{id}/jurisdiction | markets:read |
PUT /api/v1/users/{id}/jurisdiction | orders:write |
GET /api/v1/users/{id}/ledger | ledger:read (sandbox only) |
DELETE /api/v1/users/{id}/limits | orders:write |
GET /api/v1/users/{id}/limits | orders:write |
PATCH /api/v1/users/{id}/limits | orders:write |
PUT /api/v1/users/{id}/limits | orders:write |
GET /api/v1/users/{id}/statement | ledger:read |
GET /api/v1/users/{id}/status | orders:write |
PUT /api/v1/users/{id}/status | orders:write |
Swipe the table sideways for more columns.
That is every route in the public OpenAPI document. The table is generated from it at build time, and CI checks every scope against the handler.
The optional combo endpoints are a preview and are not in this table: they answer 404 until Parity enables combos for your operator. Once enabled, they count against the same per-key and per-tenant budgets. See Combos (optional).
How the limit works
| Property | Value |
|---|---|
| Scope | Two counters. One per API key and acting operator (an aggregator key acting for several downstream operators gets a separate count for each), and one per operator across every key it holds. Neither is per IP. |
| Window | Fixed, 60 seconds, aligned to the wall clock minute. |
| Per-key default | 120 requests per minute on a sandbox key, 600 on a live one. |
| Per-key ceiling | Parity sets a per-key limit of up to 6,000 per minute. |
| Per-tenant ceiling | 12,000 requests per minute across every key the operator holds. The same ceiling applies to every operator. An aggregator’s downstream operators all count against the ceiling of the operator that holds the key. |
| Embed sessions | Each embed session is limited to 300 requests per minute on the embed surface, and all of an operator’s embed sessions together share a ceiling of 12,000 requests per minute that is separate from the one your API calls use, so browser traffic never refuses your backend. |
| Invalid keys | A request with an unrecognised or revoked key is refused before metering and counts against nothing. |
| Configured on | The key itself, so a sandbox key and a live key can differ. The tenant ceiling is not yours to set. |
| Counter | A row in Postgres, incremented by a single upsert that returns the new count. |
Swipe the table sideways for more columns.
The second ceiling, and why your headers cannot see it
Minting more keys divides the tenant budget. It does not multiply it.
Without a second limit, more keys would mean more allowance. The per-operator counter makes every key you hold draw on one tenant-wide budget.
The three RateLimit-* headers describe the key. So a response can carry RateLimit-Remaining: 500 and the next request can still be refused, because the tenant counter, which no header reports, ran out.
Both gate refusals are 429 rate_limited with retryAfterSeconds and a Retry-After header (on the tenant refusal the RateLimit-* headers still describe the key), so the action is the same either way: wait that long and retry. Only the message differs, and it is prose, so do not branch on it. To know which limit you are hitting, sum your own request rate across all your keys.
Scope is checked before the limit is consumed
Waiting does not fix a wrong scope, and counting the call would turn the 403 into a 429 on retry, which looks like a different problem.
Why the count lives in the database
A per-process counter would multiply the limit by the number of instances. A single upsert returning the new count also stops two concurrent requests both seeing room.
A fixed window admits a burst
Up to twice the allowance can pass across a window boundary. The limit protects against runaway loops, not attackers. Do not rely on the burst; the window shape may change.
What every response tells you
Most responses, successes and refusals alike, carry the current window on three headers, so a client can slow down before it is refused. The exceptions are listed below.
RateLimit-Limit: 120
RateLimit-Remaining: 96
RateLimit-Reset: 37When the allowance is spent the request is refused with 429, a Retry-After header, and a body that repeats the wait in seconds:
{
"error": "rate_limited",
"message": "Over 120 requests per minute for this key.",
"retryAfterSeconds": 37
}RateLimit-Limit: the allowance for this key, this window.RateLimit-Remaining: floored at zero, so it never goes negative on a burst.RateLimit-Reset,Retry-AfterandretryAfterSeconds: seconds until the window rolls. Wait that long, not a fixed guess.- Read the headers on successful responses too. Backing off as
RateLimit-Remainingnears zero avoids most429s, but not all: the headers report the key, the tenant ceiling is counted separately, and a few responses omit the headers. Keep a retry path. - Responses without them: every
400from/api/v1/events, every500 internal_error, every error a funding route returns after the key gate, every response from the sandbox controls, and every403 sandbox_only,404 unknown_userand404 unknown_position. The full list is on Errors.
The SDK raises a RateLimitError carrying retryAfterSeconds, so the wait is already parsed for you.
Staying inside the budget
Most integrations that hit a limit are doing one of four things.
| Instead of | Do this |
|---|---|
| Refetching the whole catalogue on a timer | Page it once with ?cursor=, then re-read narrowly with ?closesAfter= and ?tradable=true, rather than pulling every event to find the handful that changed. |
| Polling the settlement register continuously | Poll on the order of once a minute, carrying nextCursor. Settlements are not high-frequency events. |
| Re-quoting on a timer to keep a ticket warm | Quote when the player is about to act. A quote carries expiresAt; re-quote on expiry, not on an interval. |
| Polling every open order for a fill | The order response already carries the fill. The only order worth polling is one whose settlementState is pending, and the reconciliation feed reports every money fact in one resumable stream. |
Swipe the table sideways for more columns.
Retry with jitter
If every client waits exactly retryAfterSeconds, they all return at once and use up the next window. Add a random fraction of a second.