Rate Limits in Market Data APIs: How to Design Around Them

Rate Limits in Market Data APIs: How to Design Around Them

Rate Limits in Market Data APIs: How to Design Around Them

How market data API rate limits work, how to read headers, handle 429s, and cut request volume with streaming, batching and caching in bots and agents.

Rate Limits in Market Data APIs: How to Design Around Them

A market data API rate limit is a cap on how much you can ask for in a window of time, and it is rarely just one number. Requests per minute, daily credits, concurrent connections, subscription counts and per-endpoint ceilings can all apply at once. Clients that stay inside them read the headers, back off with jitter, stream instead of poll, batch and cache, and share one request budget across every worker. For prediction market systems, which pull from several venues at once, the same discipline applies, and a single unified integration keeps you managing one budget instead of several. The Data API from Assymetrix is built around that single integration.

Assymetrixdata.assymetrix.comBring Market Data Into One IntegrationAccess cross-venue prediction market data through one Data API integration for your trading tools, bots, and research.Visit

TL;DR

  • Limits come in several shapes: per-minute windows, daily or monthly credit pools, concurrency caps, subscription caps and per-endpoint rules. Read all of them in the docs before you size a poller.

  • Treat response headers as the source of truth. Track remaining quota and reset time on every call instead of guessing.

  • On a 429, wait for Retry-After when it is present, otherwise use capped exponential backoff with jitter. Never retry non-idempotent writes blindly.

  • Stream instead of polling, batch symbols, and cache slow-changing reference data. Share one limiter across every worker, bot or agent that uses the same key.

Table of Contents

  • The kinds of limits you will meet

  • Read the headers, not your own guess

  • What to do when you get a 429

  • Spend fewer requests in the first place

  • One budget for many workers, bots and agents

  • What changes for prediction market data

  • A starting configuration

  • Where the Data API fits

  • Our view on limits

  • FAQ

  • Sources

The kinds of limits you will meet

Two APIs that both say ‘rate limited’ can behave nothing alike. Before writing a client, classify what the provider enforces.

Time-window request limits

The simplest form is a fixed number of requests per minute. One US brokerage API aggregates market-data limits over one-minute intervals that start at your first request, enforced per access token, per app and per user: 120 requests per minute in production and 60 in the sandbox. Note the window starts when you start, not on the wall-clock minute, so a burst at second 50 and another at second 70 can land in different windows.

Another pattern is the per-endpoint cap. Interactive Brokers’ Web API applies a global limit of 10 requests per second per authenticated session, then adds endpoint rules on top, such as 10 requests per second on the market-data snapshot endpoint and one request per 15 minutes on the scanner parameters endpoint. Violators get a 429, and offending IPs can be penalty-boxed for 10 minutes or blocked permanently. A single global counter in your client will not protect you from the tight endpoint rules.


Time-window request limits

Credits instead of requests

Some providers meter cost, not calls. In one US data service’s scheme, a successful response consumes at least one credit, and responses with multiple symbols can consume more. Plans range from 100 daily credits on a free tier up to 100,000 credits per minute on the top plan, daily plans reset at 9:30 AM Eastern, and concurrency is capped at 50 requests. A request is allowed while at least one credit remains, even if it pushes the balance negative, after which calls return 429 until the window resets. If you batch, you must know how the provider prices a batch.

Concurrency and subscription caps

Streaming has its own ceilings. tastytrade’s DXLink streamer allows 5 concurrent sessions per credential set and 25,000 subscriptions per session, with 100 subscriptions each for certain event types and 10,000 subscription changes per minute. Its REST API, by contrast, throttles at unpublished thresholds and returns bare 429s with no rate-limit headers. That is a useful reminder: some limits are documented as numbers, others only as behavior you discover.

Pacing derived from account settings

A few limits are computed from your own configuration. Interactive Brokers’ TWS API pacing is the Maximum Market Data Lines setting divided by two, per second: 50 requests per second at the default 100 lines and 100 at 200 lines. With the reject-on-excess setting checked, breaking pacing three times terminates the API session. Here the limit is a property of the account, so a hard-coded constant in your client will be wrong the day the setting changes.

Read the headers, not your own guess

A client that counts its own requests will drift from the server’s count. Retries, other processes on the same key and cost-weighted calls all move the real number. The headers tell you the server’s view.

Common patterns, taken from published docs:

A practical client logs the remaining count and reset on every response, exposes them as metrics, and slows down when remaining falls below a threshold, well before the first 429. Also record the units: seconds until reset, epoch seconds and epoch milliseconds all appear in the wild, and mixing them produces sleeps of 50 years or zero.

What to do when you get a 429

The standard response table is short: on a 429, wait as long as Retry-After says and repeat; on 5xx and network errors, back off and retry; on other 4xx errors, fail immediately, because repeating a bad request will not fix it. A Python trading course lays out the same split.


Retry actions for three HTTP error categories

The Alpaca Rust SDK is a concrete reference for the retry policy. It retries 429 and 504 up to three times after the initial request, using jittered exponential backoff starting near one second and capped at 30 seconds. A Retry-After in delta-seconds overrides the computed delay, still subject to the cap. POST and PATCH requests are replayed only on 429, which prevents double order placement when a 5xx leaves the outcome unknown.

Why jitter matters

If ten workers hit the same account limit together and all sleep exactly one second, they all retry together and collide again. The SDK’s maintainers note that because limits apply per account, a process fanning out concurrent requests answers one 429 with a synchronized burst of retries that 429s again. Randomizing the delay spreads the retries and breaks the cycle.

Know when to stop retrying

Not every 429 is a short pause. Backquant’s docs for API v2.5.0 separate a per-minute burst cap from a monthly quota: when the quota-remaining header reads zero on a monthly 429, clients should stop retrying instead of sleeping on Retry-After. Build your client to distinguish a window that resets in seconds from a pool that will not refill for days, and surface the second case as an alert, not a retry loop.

Spend fewer requests in the first place

Backoff handles the symptom. The better fix is lower request volume, and four techniques do most of the work.

Stream, do not poll

tastytrade’s guidance is blunt: live quotes and account updates should come from streamers, with REST reserved for snapshots and batched calls, because polling is what exhausts rate budgets. Backquant’s docs add that WebSocket sessions count only against the concurrent-connection cap, not the monthly REST quota. Streams bring their own duties, though. Failures there are quiet: lost messages show up only as sequence-number jumps, and a dead connection looks like a slow market, so you need sequence tracking and heartbeats.

Batch what you can

Multi-symbol snapshots, in tastytrade’s case up to 100 symbols per call, turn a hundred requests into one. Batch subscription changes too, rather than changing them symbol by symbol, since subscription changes carry their own per-minute cap. Check the pricing rule first: on credit-metered plans a batch can cost one credit per symbol, so batching saves round trips but not necessarily budget.

Cache what does not change

Instrument definitions, option chains and session calendars change slowly. Cache them with a sensible time-to-live and refresh on a schedule or an event, not on every loop. In a trading stack the same reasoning applies to downstream pacing: this write-up on order throttle limits shows how pacing fan-out keeps a system from tripping outages when one signal triggers many actions.

Multiplex connections

Some providers allow only one WebSocket connection at a time. In that case multiple streams are multiplexed on a single connection rather than opened in parallel. Even when more connections are allowed, a concurrency cap such as 5 sessions per credential set makes one multiplexed connection the safer default.

One budget for many workers, bots and agents

Rate limits attach to a key, an account or an IP, not to your process. Run three bots and an AI agent on the same key and they draw from one bucket. TradeZero’s docs state that all REST calls under one key pair share the same per-endpoint buckets and recommend a single polling loop, writes serialized through one queue, and WebSockets in place of parallel REST polling.

A workable pattern:

  1. Put a token-bucket limiter in one shared component: a gateway process, a sidecar or a Redis-backed counter. One open-source market-data client implements a per-process token bucket defaulting to 120 requests per minute, with adaptive retry on 429 and 5xx. Per-process is the floor. With several processes you need the bucket outside them.

  2. Give each endpoint family its own bucket when the provider limits endpoints separately.

  3. Prioritize. Order-relevant reads outrank background research pulls, so let the research jobs wait.

  4. Deduplicate. Two agents asking for the same snapshot within a second should share one response.

  5. Alert on the first 429, not the hundredth. Some providers send an email on the first breach of an endpoint in a window, but you should not depend on that.

AI agents deserve special mention. An agent that decides on its own to re-fetch data in a reasoning loop can burn a daily credit pool in minutes. Route every tool call through the shared limiter and give the agent a budget it can see, such as remaining calls, instead of letting it discover the ceiling by failing.

What changes for prediction market data

Prediction market systems face the same limit types, multiplied. A cross-venue strategy that compares prices needs order books, trades and market metadata from several venues, each with its own limits, its own identifiers and its own failure modes. Pulling three feeds directly means three limiters, three retry policies and three sets of headers to reconcile.

The workload also has a clear split that suits the techniques above. Live prices and book updates belong on a stream. Our guides on WebSocket prediction market data and on fixing order book drift cover sequence handling for that side. Market metadata and resolution rules are reference data, so cache them. Historical research should not be fetched row by row through a rate-limited endpoint at all: bulk history is the job of a dedicated historical data path, as described in the guide on one billion rows for reproducible backtests.

If you are designing the pipeline from scratch, the prediction market data pipeline guide walks through streaming and canonical identifiers, and the Python developer guide shows the client side.

A starting configuration

Use this as a checklist when you wire up any market data client:

Concern

Default to start with

Window accounting

Read limit, remaining and reset from headers on every response

429 handling

Honor Retry-After; otherwise exponential backoff from about 1 second, capped near 30 seconds, with jitter

Retry count

A small number, such as 3, then surface the error

Writes

Retry only when the request is known not to have been applied

Live data

Stream, with sequence numbers and heartbeats

Snapshots

Batch symbols; check how batches are metered

Reference data

Cache with a time-to-live

Many workers

One shared limiter per key, with per-endpoint buckets

Quota exhausted

Stop and alert, do not loop

Where the Data API fits

Our Data API gives developers, traders, bots and AI agents unified access to prediction market data across Polymarket, Kalshi and Limitless through a single integration, with real-time and historical data behind it. For rate-limit design that means one client, one retry policy and one place to meter requests, instead of a separate stack per venue. The Data API has free and paid tiers, so you can build the limiter and caching layer against it first. Start from the Data API page, or see the Polymarket data endpoints.


Assymetrix

Our view on limits

The teams we see hit limits hardest are not the ones sending the most data requests. They are the ones whose architecture has no single owner for the request budget: every bot, notebook and agent carries its own retry loop.

Prediction markets make this worse because the data lives on several venues with different schemas. Our position is that normalization and budgeting belong in one layer. A unified, venue-neutral API means the identifiers, the schemas and the access pattern are the same everywhere, so your limiter, cache and stream handler are written once.

Pair that with the habits above, stream live data, cache reference data, pull history in bulk and share one limiter, and rate limits become a design parameter, not an outage.

Dean

FAQ

What is the difference between a rate limit and a quota?

A rate limit caps how fast you can call, for example requests per minute or per second. A quota caps how much you can consume over a longer period, such as daily credits or a monthly request pool. Many providers apply both, and they recover differently: a rate limit resets in seconds, a quota may not reset for hours or weeks.

Should I retry on every 429?

Only when the limit is a short window. Honor Retry-After if it is present, add jitter, and cap the retries at a small number. If the headers show a daily or monthly quota at zero, stop and alert, since sleeping will not refill it. Never replay writes that might already have been applied.

Is WebSocket data subject to rate limits?

Yes, but the limits differ in kind. Streams are usually bounded by connection counts, subscription counts and subscription-change rates, as in tastytrade’s caps of 5 sessions and 25,000 subscriptions per session. Because one stream replaces many polling calls, it is the standard way to stay inside request budgets.

How do I rate limit several bots on one API key?

Put one limiter in front of all of them, since the provider counts them as a single client. A shared token bucket, ideally outside any single process, with per-endpoint buckets where the provider limits endpoints separately, keeps the total under the ceiling. Add jitter to retries so workers do not collide again.

Sources

Rate Limits in Market Data APIs: How to Design Around Them

A market data API rate limit is a cap on how much you can ask for in a window of time, and it is rarely just one number. Requests per minute, daily credits, concurrent connections, subscription counts and per-endpoint ceilings can all apply at once. Clients that stay inside them read the headers, back off with jitter, stream instead of poll, batch and cache, and share one request budget across every worker. For prediction market systems, which pull from several venues at once, the same discipline applies, and a single unified integration keeps you managing one budget instead of several. The Data API from Assymetrix is built around that single integration.

Assymetrixdata.assymetrix.comBring Market Data Into One IntegrationAccess cross-venue prediction market data through one Data API integration for your trading tools, bots, and research.Visit

TL;DR

  • Limits come in several shapes: per-minute windows, daily or monthly credit pools, concurrency caps, subscription caps and per-endpoint rules. Read all of them in the docs before you size a poller.

  • Treat response headers as the source of truth. Track remaining quota and reset time on every call instead of guessing.

  • On a 429, wait for Retry-After when it is present, otherwise use capped exponential backoff with jitter. Never retry non-idempotent writes blindly.

  • Stream instead of polling, batch symbols, and cache slow-changing reference data. Share one limiter across every worker, bot or agent that uses the same key.

Table of Contents

  • The kinds of limits you will meet

  • Read the headers, not your own guess

  • What to do when you get a 429

  • Spend fewer requests in the first place

  • One budget for many workers, bots and agents

  • What changes for prediction market data

  • A starting configuration

  • Where the Data API fits

  • Our view on limits

  • FAQ

  • Sources

The kinds of limits you will meet

Two APIs that both say ‘rate limited’ can behave nothing alike. Before writing a client, classify what the provider enforces.

Time-window request limits

The simplest form is a fixed number of requests per minute. One US brokerage API aggregates market-data limits over one-minute intervals that start at your first request, enforced per access token, per app and per user: 120 requests per minute in production and 60 in the sandbox. Note the window starts when you start, not on the wall-clock minute, so a burst at second 50 and another at second 70 can land in different windows.

Another pattern is the per-endpoint cap. Interactive Brokers’ Web API applies a global limit of 10 requests per second per authenticated session, then adds endpoint rules on top, such as 10 requests per second on the market-data snapshot endpoint and one request per 15 minutes on the scanner parameters endpoint. Violators get a 429, and offending IPs can be penalty-boxed for 10 minutes or blocked permanently. A single global counter in your client will not protect you from the tight endpoint rules.


Time-window request limits

Credits instead of requests

Some providers meter cost, not calls. In one US data service’s scheme, a successful response consumes at least one credit, and responses with multiple symbols can consume more. Plans range from 100 daily credits on a free tier up to 100,000 credits per minute on the top plan, daily plans reset at 9:30 AM Eastern, and concurrency is capped at 50 requests. A request is allowed while at least one credit remains, even if it pushes the balance negative, after which calls return 429 until the window resets. If you batch, you must know how the provider prices a batch.

Concurrency and subscription caps

Streaming has its own ceilings. tastytrade’s DXLink streamer allows 5 concurrent sessions per credential set and 25,000 subscriptions per session, with 100 subscriptions each for certain event types and 10,000 subscription changes per minute. Its REST API, by contrast, throttles at unpublished thresholds and returns bare 429s with no rate-limit headers. That is a useful reminder: some limits are documented as numbers, others only as behavior you discover.

Pacing derived from account settings

A few limits are computed from your own configuration. Interactive Brokers’ TWS API pacing is the Maximum Market Data Lines setting divided by two, per second: 50 requests per second at the default 100 lines and 100 at 200 lines. With the reject-on-excess setting checked, breaking pacing three times terminates the API session. Here the limit is a property of the account, so a hard-coded constant in your client will be wrong the day the setting changes.

Read the headers, not your own guess

A client that counts its own requests will drift from the server’s count. Retries, other processes on the same key and cost-weighted calls all move the real number. The headers tell you the server’s view.

Common patterns, taken from published docs:

A practical client logs the remaining count and reset on every response, exposes them as metrics, and slows down when remaining falls below a threshold, well before the first 429. Also record the units: seconds until reset, epoch seconds and epoch milliseconds all appear in the wild, and mixing them produces sleeps of 50 years or zero.

What to do when you get a 429

The standard response table is short: on a 429, wait as long as Retry-After says and repeat; on 5xx and network errors, back off and retry; on other 4xx errors, fail immediately, because repeating a bad request will not fix it. A Python trading course lays out the same split.


Retry actions for three HTTP error categories

The Alpaca Rust SDK is a concrete reference for the retry policy. It retries 429 and 504 up to three times after the initial request, using jittered exponential backoff starting near one second and capped at 30 seconds. A Retry-After in delta-seconds overrides the computed delay, still subject to the cap. POST and PATCH requests are replayed only on 429, which prevents double order placement when a 5xx leaves the outcome unknown.

Why jitter matters

If ten workers hit the same account limit together and all sleep exactly one second, they all retry together and collide again. The SDK’s maintainers note that because limits apply per account, a process fanning out concurrent requests answers one 429 with a synchronized burst of retries that 429s again. Randomizing the delay spreads the retries and breaks the cycle.

Know when to stop retrying

Not every 429 is a short pause. Backquant’s docs for API v2.5.0 separate a per-minute burst cap from a monthly quota: when the quota-remaining header reads zero on a monthly 429, clients should stop retrying instead of sleeping on Retry-After. Build your client to distinguish a window that resets in seconds from a pool that will not refill for days, and surface the second case as an alert, not a retry loop.

Spend fewer requests in the first place

Backoff handles the symptom. The better fix is lower request volume, and four techniques do most of the work.

Stream, do not poll

tastytrade’s guidance is blunt: live quotes and account updates should come from streamers, with REST reserved for snapshots and batched calls, because polling is what exhausts rate budgets. Backquant’s docs add that WebSocket sessions count only against the concurrent-connection cap, not the monthly REST quota. Streams bring their own duties, though. Failures there are quiet: lost messages show up only as sequence-number jumps, and a dead connection looks like a slow market, so you need sequence tracking and heartbeats.

Batch what you can

Multi-symbol snapshots, in tastytrade’s case up to 100 symbols per call, turn a hundred requests into one. Batch subscription changes too, rather than changing them symbol by symbol, since subscription changes carry their own per-minute cap. Check the pricing rule first: on credit-metered plans a batch can cost one credit per symbol, so batching saves round trips but not necessarily budget.

Cache what does not change

Instrument definitions, option chains and session calendars change slowly. Cache them with a sensible time-to-live and refresh on a schedule or an event, not on every loop. In a trading stack the same reasoning applies to downstream pacing: this write-up on order throttle limits shows how pacing fan-out keeps a system from tripping outages when one signal triggers many actions.

Multiplex connections

Some providers allow only one WebSocket connection at a time. In that case multiple streams are multiplexed on a single connection rather than opened in parallel. Even when more connections are allowed, a concurrency cap such as 5 sessions per credential set makes one multiplexed connection the safer default.

One budget for many workers, bots and agents

Rate limits attach to a key, an account or an IP, not to your process. Run three bots and an AI agent on the same key and they draw from one bucket. TradeZero’s docs state that all REST calls under one key pair share the same per-endpoint buckets and recommend a single polling loop, writes serialized through one queue, and WebSockets in place of parallel REST polling.

A workable pattern:

  1. Put a token-bucket limiter in one shared component: a gateway process, a sidecar or a Redis-backed counter. One open-source market-data client implements a per-process token bucket defaulting to 120 requests per minute, with adaptive retry on 429 and 5xx. Per-process is the floor. With several processes you need the bucket outside them.

  2. Give each endpoint family its own bucket when the provider limits endpoints separately.

  3. Prioritize. Order-relevant reads outrank background research pulls, so let the research jobs wait.

  4. Deduplicate. Two agents asking for the same snapshot within a second should share one response.

  5. Alert on the first 429, not the hundredth. Some providers send an email on the first breach of an endpoint in a window, but you should not depend on that.

AI agents deserve special mention. An agent that decides on its own to re-fetch data in a reasoning loop can burn a daily credit pool in minutes. Route every tool call through the shared limiter and give the agent a budget it can see, such as remaining calls, instead of letting it discover the ceiling by failing.

What changes for prediction market data

Prediction market systems face the same limit types, multiplied. A cross-venue strategy that compares prices needs order books, trades and market metadata from several venues, each with its own limits, its own identifiers and its own failure modes. Pulling three feeds directly means three limiters, three retry policies and three sets of headers to reconcile.

The workload also has a clear split that suits the techniques above. Live prices and book updates belong on a stream. Our guides on WebSocket prediction market data and on fixing order book drift cover sequence handling for that side. Market metadata and resolution rules are reference data, so cache them. Historical research should not be fetched row by row through a rate-limited endpoint at all: bulk history is the job of a dedicated historical data path, as described in the guide on one billion rows for reproducible backtests.

If you are designing the pipeline from scratch, the prediction market data pipeline guide walks through streaming and canonical identifiers, and the Python developer guide shows the client side.

A starting configuration

Use this as a checklist when you wire up any market data client:

Concern

Default to start with

Window accounting

Read limit, remaining and reset from headers on every response

429 handling

Honor Retry-After; otherwise exponential backoff from about 1 second, capped near 30 seconds, with jitter

Retry count

A small number, such as 3, then surface the error

Writes

Retry only when the request is known not to have been applied

Live data

Stream, with sequence numbers and heartbeats

Snapshots

Batch symbols; check how batches are metered

Reference data

Cache with a time-to-live

Many workers

One shared limiter per key, with per-endpoint buckets

Quota exhausted

Stop and alert, do not loop

Where the Data API fits

Our Data API gives developers, traders, bots and AI agents unified access to prediction market data across Polymarket, Kalshi and Limitless through a single integration, with real-time and historical data behind it. For rate-limit design that means one client, one retry policy and one place to meter requests, instead of a separate stack per venue. The Data API has free and paid tiers, so you can build the limiter and caching layer against it first. Start from the Data API page, or see the Polymarket data endpoints.


Assymetrix

Our view on limits

The teams we see hit limits hardest are not the ones sending the most data requests. They are the ones whose architecture has no single owner for the request budget: every bot, notebook and agent carries its own retry loop.

Prediction markets make this worse because the data lives on several venues with different schemas. Our position is that normalization and budgeting belong in one layer. A unified, venue-neutral API means the identifiers, the schemas and the access pattern are the same everywhere, so your limiter, cache and stream handler are written once.

Pair that with the habits above, stream live data, cache reference data, pull history in bulk and share one limiter, and rate limits become a design parameter, not an outage.

Dean

FAQ

What is the difference between a rate limit and a quota?

A rate limit caps how fast you can call, for example requests per minute or per second. A quota caps how much you can consume over a longer period, such as daily credits or a monthly request pool. Many providers apply both, and they recover differently: a rate limit resets in seconds, a quota may not reset for hours or weeks.

Should I retry on every 429?

Only when the limit is a short window. Honor Retry-After if it is present, add jitter, and cap the retries at a small number. If the headers show a daily or monthly quota at zero, stop and alert, since sleeping will not refill it. Never replay writes that might already have been applied.

Is WebSocket data subject to rate limits?

Yes, but the limits differ in kind. Streams are usually bounded by connection counts, subscription counts and subscription-change rates, as in tastytrade’s caps of 5 sessions and 25,000 subscriptions per session. Because one stream replaces many polling calls, it is the standard way to stay inside request budgets.

How do I rate limit several bots on one API key?

Put one limiter in front of all of them, since the provider counts them as a single client. A shared token bucket, ideally outside any single process, with per-endpoint buckets where the provider limits endpoints separately, keeps the total under the ceiling. Add jitter to retries so workers do not collide again.

Sources

Other Blog