Skip to content

HistoricalOrder.Label

property · HistoricalOrder · cAlgo.API Since 5.1

DesktopCLICloud

Order label.

Definition

string Label {get;}
historicalOrder.Label: str

Returns string

Examples

var labelledOrders = HistoricalOrders.Count(order => order.Label == "myLabel");
Print("Historical myLabel orders: {0}", labelledOrders);
labelledOrders = len([order for order in api.HistoricalOrders if order.Label == "myLabel"])
api.Print(f"Historical myLabel orders: {labelledOrders}")