CancelOrder()
<< Click to Display Table of Contents >> CancelOrder() |
![]() ![]() ![]() |
Cancels a specified order. This method is reserved for experienced programmers that fully understanding the concepts of advanced order handling.
Notes: 1.This method sends a cancel request to the broker and does not guarantee that an order is completely cancelled. Most of the time you can expect your order to come back 100% cancelled. 2.An order can be completely filled or part filled in the time that you send the cancel request and the time the exchange receives the request. Check the OnOrderUpdate() method for the state of an order you attempted to cancelled. |
Warning: If you have existing historical order references which have transitioned to real-time, you MUST update the order object reference to the newly submitted real-time order; otherwise errors may occur as you attempt to cancel the order. You may use the GetRealtimeOrder() helper method to assist in this transition. |
order |
An Order object representing the order you wish to cancel. |
private Order myEntryOrder = null; |