HistoricalOrder.Channel
property · HistoricalOrder · cAlgo.API Since 5.1
DesktopCLICloud
Order channel.
Environment behaviour
CLI — works differently. Orders the cBot sent carry channel 'cBot Console' instead of the desktop 'cBot cTrader'.
Cloud — works differently. Orders the cBot sent carry channel 'cBot Cloud' instead of the desktop 'cBot cTrader'.
Definition
string Channel {get;}
historicalOrder.Channel: str
Returns string
Examples
var order = HistoricalOrders.FindLast("myLabel");
if (order != null)
Print("Order channel: {0}", order.Channel);
order = api.HistoricalOrders.FindLast("myLabel")
if order is not None:
api.Print(f"Order channel: {order.Channel}")