PendingOrder.Channel
property · PendingOrder · cAlgo.API
DesktopCLICloud
Gets the channel via which the order was placed in a string format.
Environment behaviour
CLI — works differently. Orders the cBot places carry channel 'cBot Console' instead of the desktop 'cBot cTrader'.
Cloud — works differently. Orders the cBot places carry channel 'cBot Cloud' instead of the desktop 'cBot cTrader'.
Definition
string Channel {get;}
pendingOrder.Channel: str
Returns string
Examples
foreach (var order in PendingOrders)
Print("Order {0} channel: {1}", order.Id, order.Channel);
for order in api.PendingOrders:
api.Print(f"Order {order.Id} channel: {order.Channel}")