Broker API HubMenu

Alpaca status code

Alpaca status code: HTTP 429

The error, as text you can copy

HTTP 429
Kind
Status code
API
Alpaca

What does HTTP 429 mean on the Alpaca API?

Too many requests: the rate limit was hit. Both OpenAPI documents give this shared reply and the headers X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (Unix time when the allowance changes) to stay under it. The pages opened give no figure for the Trading API; the market data pages give 200 calls a minute on Basic and 10,000 on Algo Trader Plus for the historical API.

Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.

Independent and unofficialdocs.alpaca.marketschecked

How do I fix HTTP 429?

Read X-RateLimit-Remaining on every reply and pause until X-RateLimit-Reset when it reaches zero. Reuse data: cache bars you already hold and use the stream for live prices instead of polling.

Alpaca limits behind this error

This is a rate or allowance error, so these are the limits recorded for Alpaca, each with its scope and source. Pace your requests against them.

LimitValueScopeSource
client_order_id length128POST /v2/orders and PATCH /v2/orders/{order_id}docs.alpaca.marketschecked
Crypto order size200,000Crypto spot orders, buy or selldocs.alpaca.marketschecked
Market data historical API, Basic plan200Market Data API historical calls, Basic (free) plandocs.alpaca.marketschecked
Market data points per page10,000Market Data API historical bars, trades and quotes, counted across all symbolsdocs.alpaca.marketschecked
Market data historical API, Algo Trader Plus10,000Market Data API historical calls, Algo Trader Plus plan (99 US dollars a month)docs.alpaca.marketschecked
GTC order age90Orders with time in force gtcdocs.alpaca.marketschecked
Trading API request rateHTTP 429 above the limit, with X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers on replies; no figure on the pages openedTrading API, per accountdocs.alpaca.marketschecked
Market data WebSocket authentication timeout10Market data WebSocket, from connecting to the auth messagedocs.alpaca.marketschecked
Market data WebSocket connectionsDepends on the subscription; 1 for many subscriptions and with none. A second connection is answered with error 406 connection limit exceededMarket data WebSocket, per accountdocs.alpaca.marketschecked
Market data WebSocket symbols, Basic plan30Market data WebSocket, US equities, Basic (free) plan; Algo Trader Plus is unlimiteddocs.alpaca.marketschecked