Trading 212 API error code
Trading 212 API error: HTTP 429
What does HTTP 429 mean on the Trading 212 API?
Too many requests for this endpoint in the current period. The endpoint reference lists 429 as a response and sets a limit per endpoint, for example 1 request every 5 seconds for the account summary, and the limits apply per account, whichever key or IP address sends the request.
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.
How do I fix HTTP 429?
Pace each endpoint to the limit on its reference page, read x-ratelimit-remaining before each call, and when it reaches zero wait until the Unix time in x-ratelimit-reset.
Trading 212 limits behind this error
This is a rate or allowance error, so these are the limits recorded for Trading 212, each with its scope and source. Pace your requests against them.
| Limit | Value | Scope | Source |
|---|---|---|---|
| Headline limit | 1 req/5s, account summary (example) | account | docs.trading212.comchecked |