Broker API HubMenu

DXtrade API error code

DXtrade API error: 412 Precondition Failed

The error, as text you can copy

412 Precondition Failed
Kind
API error code
HTTP status
412
API
DXtrade APIs

What does 412 Precondition Failed mean on the DXtrade API?

DXtrade REST API: A conditional request failed. On order modification and cancellation the vendor returns it when the If-Match header does not match the current state of the order.

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 unofficialdemo.dx.tradechecked

How do I fix 412 Precondition Failed?

The vendor's page gives no remedy in the table. It follows from the description that the request needs the current version of the order in If-Match.