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
| Bucket | Burst (units) | Refill (units per second) | Applies to |
|---|---|---|---|
| Per key | 100 | 50 | Every authenticated request, by API key, token or agent key |
| Per account | 40 | 20 | Requests that name a trading account (all keys together) |
| Per account, trades | 20 | 10 | Trades on one account (all keys together) |
| Per IP, anonymous | 20 | 5 | Requests without a key (sign-up, public lists), including those answered 401 |
| Per IP, failed auth | 20 | 0.5 | Failed 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 server | 200 | 50 | The hosted MCP server (it also limits per key) |
| Per IP, agent keys | 200 | 50 | Agent-key calls to /v1/agent/… from one IP (all agent keys together) |
| Per signal webhook | 30 | 1 | Alerts to one /v1/signals/<token> URL (TradingView alerts) |
| Per IP, signal webhooks | 500 | 100 | Alerts 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 gets401answers 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:
| Limit | Value |
|---|---|
| Requests in flight per key | 16 |
| Trades in flight per key | 16 |
| Requests in flight per IP, anonymous | 16 |
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:
| Limit | Value |
|---|---|
| Concurrent WebSockets per key | 50 |
| Request body | 16 MiB |
| WebSocket message | 16 MiB |
What each call costs
| Class | Weight | Buckets | Calls |
|---|---|---|---|
| Standard | 1 | key + account | Reads and account changes: positions, orders, symbols, prices, account info |
| History | 5 | key + account | History and bulk reads: history-orders, history-deals, historical-market-data, historical-trades, terminal OrderHistory, PositionHistory, PriceHistory |
| Trade | 1 | key + account trades | POST /users/current/…/trade, terminal OrderSend, OrderModify, OrderClose, CloseAll, POST /v1/execution/accounts/{id}/trade |
| Batch orders | 10 | key | POST /v1/orders, POST /v1/orders/close (each leg is also checked by the account) |
| Stream connect | 5 | key + account | Opening 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:
| Header | Meaning |
|---|---|
RateLimit-Limit | The bucket’s burst, in units |
RateLimit-Remaining | Units left right now |
RateLimit-Reset | Seconds 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-Reset | The 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
429with a new idempotency key. - Stream instead of polling. One WebSocket replaces hundreds of
GET /positionscalls, 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.