Click or drag to resize
OrderServiceCancelAsync Method (String, String, OrderParameters, CancellationToken)

Note: This is preliminary documentation provided only as a preview, and is subject to change. Please contact the author for pricing and licensing information.

Cancels an order.

Namespace: ETradeNet.Order
Assembly: ETradeNet.Order (in ETradeNet.Order.dll) Version: 1.0.5793.41701
Syntax
public Task<ICancelResponse> CancelAsync(
	string accountId,
	string orderNum,
	OrderParameters parameters,
	CancellationToken cancellationToken
)

Parameters

accountId
Type: SystemString
Numeric account ID. Required.
orderNum
Type: SystemString
Numeric order ID. Required.
parameters
Type: ETradeNet.OrderOrderParameters
Common parameters.
cancellationToken
Type: System.ThreadingCancellationToken
Cancellation token.

Return Value

Type: TaskICancelResponse
Cancel method response (asynchronous task).

Implements

IOrderServiceCancelAsync(String, String, OrderParameters, CancellationToken)
Exceptions
ExceptionCondition
ETradeExceptionE*TRADE API exception.
HttpRequestExceptionNetwork error.
ArgumentNullExceptionNull argument value (accountId, orderNum).
ArgumentExceptionArgument value does not adhere to the specification (parameters).
OperationCanceledExceptionAsynchronous task canceled (cancellationToken).
ObjectDisposedExceptionDisposed object accessed (cancellationToken).
See Also