Why IB API echoes same order status multiple times?

Quote from Chronos.Phenomena:

When my order are filled, I get more than one order state update trough order status method:

orderStatus(int orderId, String status, int filled, int remaining, double avgFillPrice, int permId, int parentId, double lastFillPrice, int clientId, String whyHeld)

Why is that?

It all happens in same second... fractions of second apart? why?


my thoughts...

if I have more than one instance of EWrapper... is IB API designed to push message to all instances... and not only connected one?

I get the same thing, on fill events. Two of them.

Here's the problem:

If I want to do something as-soon-as a fill arrives, which involves resetting an order status, I get screwed by the second fill event.

So .. I now have an intermediate state "KIND_OF_FILLED", which indicates that I should not proceed yet, but wait for the next IB fill event... Works as a work around.

Quote from clearinghouse:

Is it possible to cancel-decrement orders in IB? i.e., I have 1000 shares, I want to cancel 500, but not lose my spot on the order queue on the other 500? Seems like I have to cancel all 1000 and put an order out for 500. Or maybe I am missing something here.

Amend by reducing the qty in an existing order through another call to EClientSocket::placeOrder. Amends existing order. Also does it faster than cancel/replace .. so use it to amend UP too.

public virtual void placeOrder(int id, Contract contract, Order order);
 
OK looks like you cannot update an order if you can how?

The placeOrder API will not update an order. If you resumit the same order id and changes to the order you get Request in progress for: orderID Please wait

Anyone had success with this ??

Seems you have to cancel the order and resubmit a new order.

Thanks
James

:(
 
Quote from james2hunt:

The placeOrder API will not update an order.

The placeOrder API does update/modify orders. I have never had any problems with it.
 
Quote from james2hunt:

OK looks like you cannot update an order if you can how?

The placeOrder API will not update an order. If you resumit the same order id and changes to the order you get Request in progress for: orderID Please wait

Anyone had success with this ??

Seems you have to cancel the order and resubmit a new order.

Thanks
James

:(

Wait for the ack.
 
Back
Top