Hi Nick, maybe it's not necessary but I initially thought it would be necessary to check that the orders I submit have been received by IB. So I was looking for the orderId's. But it sounds like all of this is unnecessary since it seems that IB isn't in the habit of losing or breaking orders that I submit. I'll probably remove the redundant code. If I have time!
(my wife is 8.5 months pregnant, so I'm running out of time for changes at this stage!)
-Jason
toggle quoted message
Show quoted text
-------- Original Message --------
Subject: Re: [TWS API] Unexpected duplicate orders re-submitted many times within a short time
Local Time: August 24, 2017 2:46 PM
UTC Time: August 24, 2017 12:46 PM
From: news1000@...
I am curious as to what information order status adds to your
processing. To me, once I submit an order it is active until I get an
execution or cancel. Order status seems redundant. Is there some
information in order status that simplifies or expands the abilities of
your order processing?
On 8/24/2017 2:37 AM, Jason via Groups.Io wrote:
> I planned to fix this by creating a list of orderId"s that I have
> submitted, checking that I see those in the openOrders returned, and
> if I don"t see them, then I know the list is wrong (incomplete), and I
> should call reqAllOpenOrders again, and wait for the result, before
> proceeding with any trades on that symbol.