How to debug orders that are not executed
Every once in a while I get an order gets triggered from the "next" function but does not get executed in the "notify_order" function.
- What would be the best way to start debugging a problem like this?
- What are some common causes?
What would be the best way to start debugging a problem like this?
Check all the states in
notify_order. The order is probably not being accepted by the system.
The different states are listed in: Docs - Orders
What are some common causes?
Lack of cash.