Skip to content

PendingOrderCancelledEventArgs

Summary

Provides data for the pending order cancellation event.

Signature

1
public class PendingOrderCancelledEventArgs

Namespace

cAlgo.API

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 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

1
public PendingOrder PendingOrder {get;}

Return Value

PendingOrder

Reason

Summary

Gets the reason for the pending order cancellation.

Signature

1
public PendingOrderCancellationReason Reason {get;}

Return Value

PendingOrderCancellationReason