Skip to content

Filled Event

Summary

Occurs when pending order is filled

Signature

1
public abstract event Action<PendingOrderFilledEventArgs> Filled;

Declaring Type

cAlgo.API.PendingOrders

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);
 }

Last update: November 25, 2022

Comments