Hey I was wondering if anyone here who codes automated systems on IB has dealt with this problem.
I have an automated system which places and modifies a limit order. Sometimes the connection between TWS and IB breaks and because of that I dont get the 'Filled' event or 'Cancelled' event (caused by a tight GTD). It then reconnects and either gives a 'Cannot modify filled order' or 'duplicate id' error. as my app continues to try to modify the limit order. I assumed I would only get the 'Cannot modify filled order' if the order was actually filled, but apparently they send that when orders have been cancelled also.
So after these disconnects I dont know if my order has been filled, or cancelled by the GTD. How do you guys deal with these problems if you run into them?
Thanks
I have an automated system which places and modifies a limit order. Sometimes the connection between TWS and IB breaks and because of that I dont get the 'Filled' event or 'Cancelled' event (caused by a tight GTD). It then reconnects and either gives a 'Cannot modify filled order' or 'duplicate id' error. as my app continues to try to modify the limit order. I assumed I would only get the 'Cannot modify filled order' if the order was actually filled, but apparently they send that when orders have been cancelled also.
So after these disconnects I dont know if my order has been filled, or cancelled by the GTD. How do you guys deal with these problems if you run into them?
Thanks