Skip to content

PendingOrderFilledEventArgs

Summary

Provides data for the pending order fill event.

Signature

1
public class PendingOrderFilledEventArgs

Namespace

cAlgo.API

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

Properties

PendingOrder

Summary

Gets the pending order that was filled.

Signature

1
public PendingOrder PendingOrder {get;}

Return Value

PendingOrder

Position

Summary

Gets the position that was filled from the pending order.

Signature

1
public Position Position {get;}

Return Value

Position