IG API error code
IG error.public-api.exceeded-account-historical-data-allowance
The error, as text you can copy
error.public-api.exceeded-account-historical-data-allowance - Kind
- API error code
- HTTP status
- 403
- API
- IG
What does error.public-api.exceeded-account-historical-data-allowance mean on the IG API?
The account's allowance for historical data has been exceeded. IG's reference lists this code under HTTP 403 in the Exceptions tables for /session.
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 error.public-api.exceeded-account-historical-data-allowance?
Stop requesting price history until the allowance resets, keep what you have already downloaded and ask only for the range you need. The vendor's page gives no further remedy.
IG limits behind this error
This is a rate or allowance error, so these are the limits recorded for IG, each with its scope and source. Pace your requests against them.
| Limit | Value | Scope | Source |
|---|---|---|---|
| Historical price data points a week | 10,000 | Per account, price history endpoints only | labs.ig.comchecked |
| Non trading requests a minute | 30 | Per account, non trading calls only | labs.ig.comchecked |
| Non trading requests a minute | 60 | Per application, that is per API key, non trading calls only | labs.ig.comchecked |
| Concurrent streaming subscriptions | 40 | Per streaming connection | labs.ig.comchecked corroborated by labs.ig.com/streaming-api-guide.html |
| Trading requests a minute | 100Sources conflict ig.com states around 40, checked . IG's own pages disagree. The conflict is labelled, not resolved. Pace against 40. | Per account, trading calls only | labs.ig.comchecked |