Typo in API Docs - PendingOrderFilledEventArgs
Created at 22 Apr 2019, 20:10
JE
Typo in API Docs - PendingOrderFilledEventArgs
22 Apr 2019, 20:10
https://ctrader.com/api/reference/pendingorderfilledeventargs
In the code example:
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); }
args.PendngOrder.Id
should be:
args.PendingOrder.Id