开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Issue with order.orderId Returning 0 in reqCompletedOrders(true)


 

I don't think IB keeps OrderId's for completed orders.

пн, 17 февр. 2025?г., 10:29 joshi.tarun3107 via <joshi.tarun3107=[email protected]>:

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

Join [email protected] to automatically receive all group messages.