DXtrade API error code
DXtrade API error: 1005 Reference order is closed
The error, as text you can copy
1005 Reference order is closed- Kind
- API error code
- HTTP status
- 409
- API
- DXtrade APIs
What does 1005 Reference order is closed mean on the DXtrade API?
DXtrade errorCode 1005, description "Reference order is closed" (the vendor's wording). A modify order request named an order, or the parent order of a group, that is already in a final status such as COMPLETED, CANCELED, EXPIRED or REJECTED.
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 1005 Reference order is closed?
Only modify orders that are not in a final status.