Skip to content

PendingOrderFilledEventArgs

Summary

Provides data for the pending order fill event.

Signature

1
public class PendingOrderFilledEventArgs

Namespace

cAlgo.API

Properties

Name Description
PendingOrder { get; } Gets the pending order that was filled.
Position { get; } Gets the position that was filled from the pending order.

Examples

1
2
3
4
5
6
7
8
9
 protected override void OnStart()
 {
     PendingOrders.Filled += PendingOrdersOnFilled;
     PlaceStopOrder(TradeType.Buy, Symbol, 10000, Symbol.Ask);
 }
 private void PendingOrdersOnFilled(PendingOrderFilledEventArgs args)
 {
     Print("Pending order with id {0} was filled, position id  is {1}", args.PendingOrder.Id, args.Position.Id);
 }

See Also


Last update: July 1, 2022

Comments