IOrdersApiCancelOrder Method

GF API Documentation
Sends cancel request for an existing IOrder.

Namespace:  GF.Api.Orders
Assembly:  GF.Api (in GF.Api.dll) Version: dd7171be68430789135ec75c4e9f4bbfeca31201
Syntax

void CancelOrder(
	OrderID orderID,
	SubmissionType submissionType,
	Location location = null,
	Tag50 tag50 = null
)

Parameters

orderID
Type: GF.Api.OrdersOrderID
ID of order to cancel
submissionType
Type: GF.Api.Values.OrdersSubmissionType
SubmissionType
location (Optional)
Type: GF.Api.UtilsLocation
Sender location. Only eligible users can specify location parameters. See also: [!:Command.SenderLocation]
tag50 (Optional)
Type: GF.Api.UtilsTag50
Tag50 value. Only eligible users can specify
Remarks

Cancel ICommand will be added to the Commands list. Note that the cancel command will be initially in pending state, and the client should monitor CommandUpdated event and/or IOrderState to see whether the command was executed or failed. Also order IOrderState will become Cancelled when cancel command succeed.
See Also

Reference