# Limits

Every plan reads every ticker and every signal. See pricing for prices and each plan's limits: https://tickerbot.io/pricing

## Data delay

How far behind live a plan reads. A plan with a data delay reads every surface that far behind live. End of day is each market's last close (stocks and rates 4:00 PM ET, 1:00 PM on a half day, on a weekend or holiday the last trading day's; FX 5:00 PM ET, Monday to Friday; crypto 00:00 UTC), and nothing after it; a delay in minutes is that many minutes behind now. Scan, Get a signal and Get a ticker read the market as it stood then, and their `as_of` is the time the data is from. As-of reads, history, bars, events and news end at that cut-off (a read over symbols from several markets at the earliest of their closes; bars cut each symbol at its own), and an `asof` newer than it moves to it. Such a response says so in `_meta`: [Metadata](/docs/metadata) has the keys. If the delayed data cannot be read, the call answers a `503` with `Retry-After` (`eod_data_unavailable` at end of day, `unavailable` on a delay in minutes); it never falls back to live data.

## Depth

How far back a read reaches. Depth covers everything that looks back: as-of reads (Scan, Get a signal, Get a ticker), signal history, bars, events and news; a plan without a depth limit reaches as far back as each source goes. A date you send that is older than your plan reaches (`from`, `to`, `asof`) is a `403 history_limit_exceeded` naming the first date your plan reads. A read with no start date of its own starts at that date instead: `_meta.history_from` names it on History, Bars, Query events and Query news, and `_meta.plan_limits.history` says it is your plan's depth and which plans reach further, with an `upgrade_url`.

On a plan with a history depth, every history read (as-of reads, History, Bars, Query events and Query news) also carries `X-History-From`: the first date the plan reads, as `YYYY-MM-DD`.

## Precision

How finely a read looks back. Precision covers everything with an interval: an as-of read at a past hour or minute, signal history at `grain=1h` or `1m` (History, and Query events with `kind=signal` or `join=state`, built-in and custom) and Bars at an intraday interval (`1h` to `4h` need hourly precision, finer intervals minute). Daily and longer bars, other event kinds, news and live reads are the same on every plan. Under `grain=auto` a finer grain than your plan has rounds to your finest one and `_meta.plan_limits.grain` says so, with the plans that have finer and an `upgrade_url`; a pinned grain or bar interval your plan does not have is a `403 grain_not_on_plan`.

## Monthly calls

A quota per calendar month, on every plan. Monthly calls are per calendar month (UTC), resetting on the 1st; a plan stops at its quota or serves its grace first (on pricing, At quota). What counts is every call you compose: with a key, from the dashboard Shell or from a Try-it panel on these pages while signed in. Webhook deliveries and the stream use no calls. The dashboard's own tool tabs (Scan, Signals, Tickers, Universes, Webhooks) refresh on their own and do not count; they are capped at 10,000 calls a day per account instead, which no one working interactively reaches.

When the quota is used up you get `402 monthly_quota_exceeded` with a `resets_at` timestamp and an `upgrade_url`. Rejected requests (429s and quota 402s) and server-side 5xx errors never consume quota. Quota 402s carry both header sets (`X-Quota-*` and the rate-limit headers), and an out-of-quota client bursting past its per-minute window still gets a `429` like anyone else.

### Quota headers

On every plan with a monthly quota.

| Header | Description |
|--------|-------------|
| `X-Quota-Limit` | Monthly call quota for your plan (each plan's quota is on [Pricing](/pricing)). Absent on Enterprise, which has no fixed quota. |
| `X-Quota-Remaining` | Calls remaining in the current calendar month (UTC). |
| `X-Quota-Reset` | Unix timestamp (seconds) of the first instant of next month, when the quota resets. |

## Rate limit

Burst speed, measured over a rolling minute. The window is per account: every key on the account, plus the dashboard and the sandbox, shares it, so adding keys does not add throughput. The window is a rolling minute, not a clock minute: brief bursts above the sustained rate are absorbed as long as you stay under your per-minute cap.

When you cross the limit you get `429 rate_limit_exceeded` with a `Retry-After` header counting down to the moment your oldest request ages out of the window (at most 60s), which is not the same as waiting for the top of the minute. The JSON body names your plan’s limit and carries `retry_after_seconds` and an `upgrade_url`.

### Rate-limit headers

Every rate-limited response (success and 429 alike, quota-blocked 402s included) carries the rate-limit headers. They are absent only where no limiter runs: unauthenticated requests (401s) and Enterprise plans with no finite limit.

Use the `X-RateLimit-Remaining` header to throttle yourself proactively rather than racing into the cap. For which other errors are worth retrying, see Errors (https://tickerbot.io/docs/errors.md).

| Header | Description |
|--------|-------------|
| `X-RateLimit-Limit` | Per-minute request limit for your account (each plan's limit is on [Pricing](/pricing)). |
| `X-RateLimit-Remaining` | Requests remaining in the current minute window. |
| `X-RateLimit-Reset` | Unix timestamp (seconds) when the per-minute window resets (the same format as `X-Quota-Reset`). |
| `Retry-After` | Seconds to wait before retrying. Present only on 429 responses. |
| `X-RateLimit-Warning` | Appears on successful responses once the window is ≥80% consumed, such as `Approaching plan limit (49/60).` Treat it as the back-off signal before the 429. |

## Query time limit

Every query is cut off at 30 seconds. The first as-of read of an instant is cold (read from disk); a repeat of the same instant and grain is warm. Whole-market intraday reads are the heaviest: a cold one can take ten seconds or more and can reach the limit. Pin `grain`, narrow with `q` (for example `asset_class = 'stocks'`) or `universe`, or use a bare date when the close is enough. Figures are from the live service and move with load.

| Read | Cold | Warm |
|---|---|---|
| Scan or signals, bare date | ~10 s | ~2 s; signals up to ~4 s |
| Scan or signals, intraday, pinned `grain` | ~8–9 s | ~1 s |
| Scan, intraday, `auto` (three grains) | ~12 s; `group_by` ~8 s | ~2 s |
| Signals, intraday, `auto` | ~9 s | ~2 s |
| Ticker, any `asof`, any `grain` | 1–3 s | ~0.2 s |
| History or bars with `asof` | under 1.5 s | under 0.6 s |
| Events `join=state`, one ticker, ten-day window | a few seconds for a daily signal; up to ~28 s for an hourly one | 1–3 s |

## Without a key

The no-key sandbox (`/v2/sandbox/*`) is the same API with the same responses; without a key it is budgeted per IP at 30 requests/hour and 60/day, and it reads as the Free plan does: end of day, with Free's history depth and daily precision, on every ticker. Carries `limits` and `retry_after_seconds` in the body, plus `Retry-After`, `X-Sandbox-Remaining-Hour` and `X-Sandbox-Remaining-Day` headers (the two `X-Sandbox-Remaining-*` headers also ride on every successful anonymous sandbox response, so you can watch the budget before hitting it). Signed in on the docs, or with an API key on `/v2`, your plan's per-minute limit applies instead.
