Broker API HubMenu

IG API error code

IG API error: invalid.request.forceOpen

The error, as text you can copy

invalid.request.forceOpen
Kind
API error code
HTTP status
4xx
API
IG

What does invalid.request.forceOpen mean on the IG API?

A validation failure on the request field forceOpen. IG's guide gives this as an example of a pattern: the last part of the code names the request field whose value was not valid, so the suffix changes from field to field.

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 unofficiallabs.ig.comchecked

How do I fix invalid.request.forceOpen?

Correct the value of the field named at the end of the code.