IG API error code
IG API error: error.security.too-many-failed-attempts
The error, as text you can copy
error.security.too-many-failed-attempts - Kind
- API error code
- HTTP status
- 401
- API
- IG
What does error.security.too-many-failed-attempts mean on the IG API?
The maximum number of failed login attempts has been reached. IG's reference lists this code for the version 3 login and for switching account on /session. It is a login lockout, not a request rate limit.
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.security.too-many-failed-attempts?
Stop retrying the login from code, because each further failure is another failed attempt. Check the stored credentials. The vendor's page gives no remedy and does not say how the count is reset.