Assembly: Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)
bool CancelOrder( string orderId )
Function CancelOrder ( orderId As String ) As Boolean
bool CancelOrder( String^ orderId )
abstract CancelOrder : orderId : string -> bool
- Type: System..::..String
Unique Id of this order as given in the SubmitOrder function.
Return ValueType: Boolean
True if the cancel request was successfully sent.
A true return value does not mean that the order was cancelled. Listen on the OrderUpdatedDelegate to determine if the cancellation was successful.
Only orders with a submitted or pending status can be cancelled. Orders that are filled or rejected cannot be cancelled.