Broker API HubMenu

Capital.com API error code

Capital.com API error: error.too-many.requests

The error, as text you can copy

error.too-many.requests
Kind
API error code
HTTP status
429
API
Capital.com

What does error.too-many.requests mean on the Capital.com API?

Request limit exceeded: 10 requests per second per user, 1 per second for POST /session per API key, and 1 per 0.1 s for position and order calls.

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 unofficialopen-api.capital.comchecked

How do I fix error.too-many.requests?

Session creation is 1 request per second per key; general calls 10 per second. Reuse sessions and back off.

Capital.com limits behind this error

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

LimitValueScopeSource
Headline limit10/s per useruseropen-api.capital.comchecked