HistoricalOrder.OrderType
property · HistoricalOrder · cAlgo.API Since 5.1
DesktopCLICloud
Order type.
Definition
HistoricalOrderType OrderType {get;}
historicalOrder.OrderType: HistoricalOrderType
Returns HistoricalOrderType
Examples
var limitOrders = HistoricalOrders.Where(order => order.OrderType == HistoricalOrderType.Limit).ToArray();
Print("Historical limit orders: {0}", limitOrders.Length);
limitOrders = [order for order in api.HistoricalOrders if order.OrderType == HistoricalOrderType.Limit]
api.Print(f"Historical limit orders: {len(limitOrders)}")