View as Markdown

Rate limits

The real limits, what each call costs, the headers you get, and how to back off without making things worse.

Tickwire uses a few plain token buckets, not a credit system. Each request costs a small, fixed number of units (its weight), and each bucket refills continuously. Limits apply per API key and per trading account, so one noisy integration can’t starve your others, and trades have their own budget, so polling can never block an order.

The limits

BucketBurst (units)Refill (units per second)Applies to
Per key10050Every authenticated request, by API key, token or agent key
Per account4020Requests that name a trading account (all keys together)
Per account, trades2010Trades on one account (all keys together)
Per IP, anonymous205Requests without a key (sign-up, public lists), including those answered 401
Per IP, failed auth200.5Failed authentication: no key where one is needed, a key in a REST URL, an invalid key, or a key-less call our API answered 401
Per IP, MCP server20050The hosted MCP server (it also limits per key)
Per IP, agent keys20050Agent-key calls to /v1/agent/… from one IP (all agent keys together)
Per signal webhook301Alerts to one /v1/signals/<token> URL (TradingView alerts)
Per IP, signal webhooks500100Alerts from one IP to all signal webhook URLs together (TradingView sends from a few shared IPs)

A request passes only if every bucket it uses has room, and then all of them are charged. A refused request charges nothing.

A failed authentication counts twice: once against the anonymous bucket of your IP and once against its failed-auth bucket, which refills ten times slower. While the failed-auth bucket is empty, every request from that IP is answered 429 until it refills (one attempt every two seconds). The one exception is a key that worked in the last hour: it still works. A 401 carries the same RateLimit headers as any other answer, so you can see how many attempts are left. A call with a valid key never counts as a failure.

Shared IPs (office, NAT, VPN). The failed-auth bucket is per IP, not per key. If one script behind your IP keeps sending a bad or missing key, about 20 failures empty the bucket. Keys that already worked from anywhere in the last hour keep working. Other requests from that IP get 429 rate_limited, including a good key used for the first time, until the bucket refills. We don’t check new keys while the bucket is empty, so it can’t be used to guess keys. Find the script that gets 401 answers and fix its key first. Then wait for the bucket to refill.

Sign-in to the dashboard, OAuth and the MCP server keep their own limits and do not count here.

Requests in flight at once:

LimitValue
Requests in flight per key16
Trades in flight per key16
Requests in flight per IP, anonymous16

A request counts until its answer starts, so streamed answers, stream-hub long polls and WebSockets never hold a place. One more is answered 429 at once (bucket key-in-flight, key-trades-in-flight or ip-in-flight, with Retry-After of 1 or 2 seconds). It is never queued. Trades have their own count, so slow reads never block an order. If Tickwire itself is busy, a request can also get 503 controlplane_unavailable within about a second, with a Retry-After; nothing was sent, so back off and retry.

Streaming:

LimitValue
Concurrent WebSockets per key50
Request body16 MiB
WebSocket message16 MiB

What each call costs

ClassWeightBucketsCalls
Standard1key + accountReads and account changes: positions, orders, symbols, prices, account info
History5key + accountHistory and bulk reads: history-orders, history-deals, historical-market-data, historical-trades, terminal OrderHistory, PositionHistory, PriceHistory
Trade1key + account tradesPOST /users/current/…/trade, terminal OrderSend, OrderModify, OrderClose, CloseAll, POST /v1/execution/accounts/{id}/trade
Batch orders10keyPOST /v1/orders, POST /v1/orders/close (each leg is also checked by the account)
Stream connect5key + accountOpening a WebSocket. Frames on an open socket are free

So with one key you can, at a steady rate, make 50 reads a second, or 10 history calls a second, and bursts of twice that. One account is capped lower, whichever key calls it: 20 reads a second (burst 40), or 4 history calls a second. Trades have their own bucket on each account: 10 a second, burst 20.

Trades are never dropped silently

A trade refused by a rate limit is answered 429 with "sent": false and "outcome": "not_sent". It never reached the terminal and was not queued. You can resend it after Retry-After; use the same Idempotency-Key anyway, as for every trade.

Headers

Every response carries the tightest bucket’s state, in the IETF RateLimit header fields form, plus the same numbers under the older X- names:

HeaderMeaning
RateLimit-LimitThe bucket’s burst, in units
RateLimit-RemainingUnits left right now
RateLimit-ResetSeconds until the bucket is full again
RateLimit-Policy<burst>;w=<seconds to refill from empty>;name="<bucket>", e.g. 100;w=2;name="key"
X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-ResetThe same values

A 429 also carries Retry-After (seconds until this request would pass) and the standard error envelope with code rate_limited. metadata says which bucket refused it (bucket: key, account, account-trades, ip…), the request’s weight, and recommendedRetryTime, as on the /users/current/… API.

{ "error": "rate_limited", "message": "too many requests; retry after the time in Retry-After",
  "sent": false, "outcome": "not_sent",
  "metadata": { "recommendedRetryTime": "2026-09-25T11:02:20.000Z", "exceededConfig": "perAccountTrades",
                "resourceId": "account:acc_7Qx", "limit": 20, "bucket": "account-trades", "weight": 1 },
  "requestId": "4f1c…", "docUrl": "https://tickwire.io/docs/errors/rate_limited/" }

On the /users/current/… routes error is TooManyRequestsError and our code is in code, so existing clients that read error handle it as they do today. Too many open WebSockets is 429 too_many_connections.

Backing off well

  • Wait at least Retry-After. Then back off exponentially with jitter, capped at 30 seconds or so. Without jitter, every client retries at the same instant and trips the limit again.
  • Never auto-retry a trade on 429 with a new idempotency key.
  • Stream instead of polling. One WebSocket replaces hundreds of GET /positions calls, and its frames don’t count against request limits.

What doesn’t count

Webhook deliveries, WebSocket frames we send you, and platform health status checks.

Need more? Higher limits are available on request, per key; the headers always show the limits that apply to you.