Skip to content

PendingOrderCancelledEventArgs

Summary

Provides data for the pending order cancellation event.

Signature

1
public class PendingOrderCancelledEventArgs

Namespace

cAlgo.API

Properties

Name Description
PendingOrder { get; } Gets the pending order that was cancelled.
Reason { get; } Gets the reason for the pending order cancellation.

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


Last update: July 1, 2022

Comments