Trading 212 API error code
Trading 212 API error: Order not found
What does Order not found mean on the Trading 212 API?
No order exists with the id given. Trading 212's reference gives these words as the description of the 404 response when fetching or cancelling an order by id.
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 Order not found?
Check the id against the list of active orders. An order that has filled, been cancelled or expired is no longer pending.