PendingOrderCancelledEventArgs
Summary
Provides data for the pending order cancellation event.
Signature
| public class PendingOrderCancelledEventArgs
|
Namespace
cAlgo.API
Examples
| protected override void OnStart()
{
PendingOrders.Cancelled += PendingOrdersOnCancelled;
var result = PlaceStopOrder(TradeType.Buy, Symbol, 10000, Symbol.Ask + 10 * Symbol.PipSize);
CancelPendingOrder(result.PendingOrder);
}
private void PendingOrdersOnCancelled(PendingOrderCancelledEventArgs args)
{
Print("Pending order with id {0} was cancelled. Reason: {1}", args.PendingOrder.Id, args.Reason);
}
|
See Also
Properties
PendingOrder
Summary
Gets the pending order that was cancelled.
Signature
| public PendingOrder PendingOrder {get;}
|
Return Value
PendingOrder
Reason
Summary
Gets the reason for the pending order cancellation.
Signature
| public PendingOrderCancellationReason Reason {get;}
|
Return Value
PendingOrderCancellationReason