You will find that different people use different methods to keep
track of orders and execs.
I never use order status and only use exec details. I don't care
what IB's internal order flow is, I only care about the order
being filled.
Some people monitor both order status and exec details and thern
reconcile them.
You will have to experiment and see what works for you.
On 1/7/2021 7:53 AM, David Armour
wrote:
toggle quoted message
Show quoted text
Hi Ed,
Do you have a timer on your wait for orderStatus()? And are you
submitting MKT orders with transmit=true?
The reason I ask is because the code I have earlier on in my
program uses orders with time triggers so they sit on TWS pending
submission to the market. I always get a response in millisecs
from those orders.
The only issue I have with my code is at the market close where I
need to send them straight to market. I am using the same code so
I don't see how the code can be wrong. Some MKT orders get placed
and orderStatus() triggers but after a few orders (usually about
2) my software breaks because of no response within 5 secs. I read
in the docs from ()
"There are not guaranteed to be orderStatus callbacks for every
change in order status. For example with market orders when the
order is accepted and executes immediately, there commonly will
not be any corresponding orderStatus callbacks. For that reason it
is recommended to monitor the function
in addition to ."