I submit an EnterLong that creates an IOrder that moves to the PendingSubmit state. TraceOrders shows "Entered internal PlaceOrder()".
Q1: Why does an order go into the PendingSubmit state?
Q2: Why does it stay there, sometimes for a minute or two?
After a period of time, I decide the order needs to be cancelled while still in the PendingSubmit state. I issue a CancelOrder with the IOrder returned by the original EnterLong.
TraceOrders does not show any order management action. The order is not cancelled and remains in the PendingSubmit state?
Q3: What is the expected outcome of issuing CancelOrder on an order in the PendingSubmit state?
Q4: What is the expected action one should see from TraceOrders when issuing CancelOrder on an order in the PendingSubmit state?
Q5: How does one cancel an order in the PendingSubmit state?
Thanks.
Comment