Interactive Broker python API Question

Modification is the same as cancel and submit new order. So might as well cancel and send a new one.

Not sure you understand how the IB API works in principle. If you've registered and waiting for execution reports then no while loop is necessary. You wait until the whole order is complete or you wait for partial fill+some time and then send the stop. Marketable stop orders don't work outside RTH of course.
thanks. i will try it
 
i found that when i use python API to look at the fill report, the filled time is UK time. However, the setting in my TWS is Hong Kong time and the filled time in "Trades" in TWS is also Hong Kong time. so i think it is the API problem. does anyone know how to ask API to follow TWS's time zone?
 
Back
Top