Broker apis
Broker API Rate Limits, Downtime, and Reconnects: The Plumbing That Decides Whether Your Strategy Trades
Your strategy trades when the broker's API accepts the request — and every broker rations that. A naive poller lost 44.4% of its requests to 429s; a paced one lost none. The plumbing decides whether your strategy trades.
Educational content, not investment advice. Trading involves risk of loss.
In brief
- Every broker rations API access differently: Alpaca 200 requests/minute per account, IBKR pacing rules (60 small-bar requests per 10 minutes), Binance 1,200 request-weight per minute plus 10 orders per second.
- In a stated 5-minute simulation, a naive poller lost 44.4% of its requests to 429s (800 of 1,800); a token-bucket paced poller lost none (720 of 720 accepted).
- Connections drop on schedule — IBKR resets daily 00:15-01:45 ET — and by surprise, as Schwab users reported on November 17, 2026. After a drop, reconcile open orders against the broker before trading again; a client that trusted its memory was wrong about 2 of 5 orders.
- The fix is three pieces: one paced queue per broker, a 429 handler that honors Retry-After with exponential backoff and jitter, and a reconnect that re-subscribes and reconciles before resuming.
On this page
The short answer
Your strategy does not trade when your signal fires. It trades when the broker's API accepts the request — and every broker rations that acceptance. Alpaca caps trading requests at 200 per minute per account. Interactive Brokers throttles small-bar history to 60 requests in any ten minutes. Binance budgets 1,200 request-weight per minute and bans IPs that keep pushing past it. On top of the limits, the connection itself drops: IBKR resets its platform daily, and on November 17, 2026, Schwab users reported hitting an "Internal Server Error" just trying to reach their accounts. The strategy that survives is the one whose plumbing expects all of this — a paced queue, exponential backoff that honors Retry-After, and a reconnect that reconciles open orders before trading again. The simulation below shows the difference: a naive poller lost 44.4% of its requests to 429s; a paced one lost none.
Three brokers, three different rationing systems
There is no universal rate limit. Each broker rations differently, and the shape of the limit decides the shape of your client.
Alpaca: a flat 200 requests per minute per account. Every trading-API response carries X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset headers, so your client can see the wall coming instead of hitting it blind. The limit is per account, not per endpoint — three subsystems polling at 200 per minute each are really sending 600 against one counter.
Interactive Brokers: pacing rules, not a single number. For historical bars of 30 seconds or less, IBKR treats any of three things as a pacing violation: an identical request repeated within 15 seconds, six or more requests for the same contract within two seconds, or more than 60 requests in any ten-minute window. BID_ASK data counts double. These limits cannot be raised. For bars of one minute and larger the hard limits lift, but heavy use can still end in a disconnect — and a downloader that keeps retrying after a violation can get the whole API session disconnected.
Binance: a weight budget, not a request count. The spot API allows 1,200 request-weight per minute per IP, and endpoints cost different weights: placing an order costs 1, an account check costs 20. On top of weight, orders are capped at 10 per second and 100,000 per 24 hours. Polling account state every second costs 1,200 weight a minute all by itself — the entire budget, spent on one read.
The practical rule: read the limit table for your broker before you write the loop, and design one queue per broker, not one queue per strategy. A client that mixes data polling and order placement on the same counter will starve its own orders.
What a 429 actually costs you
A 429 is not a polite "try later." In a live session it is a missed fill, a stale position, or a signal that never becomes an order. Here is the cost, measured. The model is synthetic but stated: a five-minute window, a strategy polling 12 symbols, a broker limit of 200 requests per minute.
A naive poller — one request per symbol every two seconds, 360 requests a minute against a 200 limit — sent 1,800 requests and had 800 rejected: 44.4% of its traffic thrown away. Worse, every rejection is a request the strategy paid for in latency and got nothing for. A paced poller — one request per symbol every five seconds, 144 a minute, through a token bucket — sent 720 requests and had zero rejected, with no queue wait at all. The paced client did less work and got more done: every signal it computed reached the broker.
The lesson is not "poll slower." It is "poll on a budget." A token bucket that refills at the broker's published rate turns the limit into a schedule instead of a wall, and the X-RateLimit-Remaining header — or Binance's X-MBX-USED-WEIGHT-1M — tells you exactly how much budget is left before you spend it.
The connection will drop. Plan the reunion, not the goodbye
Rate limits are the predictable failure. Drops are the other one, and they are scheduled as often as they are accidental. IBKR's own status page lists a daily reset: 00:15–01:45 ET for North America, every trading day. Your session will be interrupted at that hour whether you planned for it or not. And unplanned drops happen too — the Schwab reports on November 17, 2026 are a reminder that even the largest brokers have days when users cannot get in at all.
What matters is what your client believes after the drop. In the same simulation, a feed dropped 137 seconds into the session while two of five open orders filled on the broker's side. A client that trusted its local view was wrong about 2 of 5 open orders — it would have tried to cancel orders that no longer existed and, worse, believed it held positions it had already exited. A client that reconnected with backoff (1s, 2s, 4s with jitter, 6.3 seconds total) and then reconciled its open orders against the broker before trading again was wrong about zero. The reconnect is not the hard part. The reconciliation is.
Three rules for the reunion: back off exponentially with jitter so a thousand clients do not hammer the broker in the same second; re-subscribe to market data before sending orders; and always ask the broker what is open before acting on what you remember being open. A kill switch that halts new orders until reconciliation completes costs seconds. Trading on a stale book costs the account.
The plumbing, in code
The pattern is small enough to fit in one place. A token bucket paces outbound requests at the broker's published rate; a 429 handler backs off exponentially and honors the server's Retry-After; a reconnect handler re-subscribes and reconciles before resuming.
import time, random
class TokenBucket:
def __init__(self, rate_per_min):
self.rate = rate_per_min / 60.0 # tokens per second
self.tokens = rate_per_min
self.last = time.monotonic()
def take(self):
now = time.monotonic()
self.tokens = min(200.0, self.tokens + (now - self.last) * self.rate)
self.last = now
if self.tokens < 1.0:
time.sleep((1.0 - self.tokens) / self.rate)
self.tokens = 1.0
self.tokens -= 1.0
def call_with_backoff(fn, retries=5):
delay = 1.0
for attempt in range(retries):
status, retry_after = fn()
if status != 429:
return status
# Honor the server's Retry-After, then double with jitter.
delay = max(retry_after, delay) * random.uniform(0.5, 1.5)
time.sleep(min(delay, 30.0))
delay *= 2
raise RuntimeError("broker still throttling after retries")
Run every broker call through take(), and every 429 through call_with_backoff. The two functions are the whole difference between the 44.4% rejection rate and the zero in the simulation above. If your strategy runs on more than one broker, give each broker its own bucket — Alpaca's 200-per-minute and Binance's 1,200-weight are different currencies and must not share a wallet.
What to do next
Before your next live session, write down your broker's limit table — the numbers in this article are the published ones, but they change — and check three things in your client: one paced queue per broker, a 429 handler that honors Retry-After, and a reconnect that reconciles open orders before the next order goes out. If any of the three is missing, the strategy is trading on luck, and luck is the one thing a systematic strategy is supposed to remove. How to connect Python to your broker's API shows the first-order flow this plumbing protects, and market data APIs covers the feed-health checks that catch the gaps a reconnect misses.
If the plumbing is the bottleneck — the queue, the backoff, the reconciliation across brokers — that is the kind of build the engineering desk does. BlackShore Agency is the engineering firm inside Blackshore Technologies, the same parent company as Quantide, and a desk engineer can wire rate-limit-aware execution across your brokers so the strategy trades when the signal fires, not when the API feels like it.
Frequently asked questions
Does Alpaca's 200 requests per minute apply per endpoint?
No — the limit is per account, not per endpoint. Three subsystems polling at 200 requests a minute each are sending 600 against one 200-per-minute counter. Use one paced queue per broker, shared by every subsystem.
What are Interactive Brokers' pacing rules for historical data?
For bars of 30 seconds or less: no identical request within 15 seconds, no more than six requests for the same contract within two seconds, and no more than 60 requests in any ten minutes. BID_ASK data counts double, and the limits cannot be raised.
What should my client do when it gets a 429?
Back off exponentially with jitter, honor the server's Retry-After header, and stop all requests at once instead of retrying immediately. On Binance, pushing past 429s can trigger an automated temporary ban.
What must happen after a broker connection drops?
Re-subscribe to market data, then ask the broker which orders are actually open before sending anything new. A client that trusts its pre-drop memory can try to cancel filled orders and believe it holds positions it already exited. Halt new orders until reconciliation completes.
Sources
- Market Data Limitations — Interactive Brokers TWS API (pacing violations: 60 requests / 10 min, 6 in 2s, identical within 15s)
- Current System Status — Interactive Brokers (daily reset 00:15-01:45 ET, updated Nov 28, 2026)
- Executing Orders — Alpaca Community Forum (200 calls/minute, X-RateLimit headers)
- Getting Started — python-binance docs (1,200 weight/min, 10 orders/sec, 100,000 orders/24h)
- IBKR API Historical Data: How to Download Bars without Pacing Violations — Interactive Brokers Campus (retrying after a violation can disconnect the session)
- Binance Scraper Guide (429s can trigger an automated temporary 418 ban, 2 minutes to 3 days)
Related reading
- GuideOrder Types, Partial Fills, and Idempotency: Making Every Order Safe to RetryOn November 23, 2026, four major brokerages were reported down at once. Your order timed out — did it land? A naive retry doubles your position; an idempotent retry doesn't. The difference is one ID, chosen before the first submit.6 min read
- GuideMarket Data APIs for Systematic Traders: Feeds, Latency, and What BreaksOn December 6, 2026, US equities start trading 23 hours a day. Your data feed is about to get a new session, a nightly pause, and a whole new set of ways to silently break. Here is how to pick a market data API and wire it so it fails loudly instead of quietly.6 min read
- GuideHow to Connect Python to Your Broker's API and Place Your First Automated OrderConnecting Python to a broker takes about an hour the first time, and most of it is setup, not code. Here is the full path — Alpaca and Interactive Brokers, paper first — with code that was actually run.5 min read