PendingOrderFilledEventArgs


Summary

Provides data for the pending order fill event.

Syntax

public class PendingOrderFilledEventArgs : Object

Members

NameTypeSummary
PendingOrder PropertyGets the pending order that was filled.
Position PropertyGets the position that was filled from the pending order.

Example 1

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.PendngOrder.Id, args.Position.Id);
}