开云体育

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

Documentation for OrderCancel? ...


bdcoder
 

Using C# API Version 10.30.01.
?
Only a few weeks into using this API and have noticed the documentation is severely lacking in all areas (which seems to be the state of the programming world these days).? Regardless, I needed to use the cancelOrder method.
?
The shows an example of the cancelOrder method as:
client.cancelOrder(nextOrderId - 1, "");
?
The shows the same example as above.
?
However, the code (downloaded) from IB contains an EClient.cancelOrder method with the following arguments:
? ? ? ? public void cancelOrder(int orderId, OrderCancel orderCancel)
?
The code downloaded from IB shows the default constructor for an "OrderCancel" object as:

? ? ? ? public OrderCancel()
? ? ? ? {
? ? ? ? ? ? ManualOrderCancelTime = EMPTY_STR;
? ? ? ? ? ? ExtOperator = EMPTY_STR;
? ? ? ? ? ? ExternalUserId = EMPTY_STR;
? ? ? ? ? ? ManualOrderIndicator = int.MaxValue;
? ? ? ? }
?
I ended up calling the cancelOrder method as follows, which works ...
?
? ? ? ?cancelOrder( order_id, new IBApi.OrderCancel() );
?
But I am ASSUMING this is OK as I do not receive any errors.? If someone knows of a resource that fully describes the "OrderCancel" object, please post a link.
?
Also, any ideas as to how often the documentation is actually updated?
?
Thanks in advance.
?
?
?
?
?

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