Re: Issue with order.orderId Returning 0 in reqCompletedOrders(true)
I don't think IB keeps OrderId's for completed orders.
toggle quoted message
Show quoted text
Hello Folks, I am encountering an issue where order.orderId is consistently returning 0 when making the following request:
reqCompletedOrders(true);
I'm currently using Paper Trading account.
This occurs specifically in the completedOrder(const Contract& contract, const Order& order, const OrderState& orderState) callback response.
Has anyone else experienced a similar issue or found a solution for this behavior?
Looking forward to your insights.
-- Best, DS
|