Deal.Channel
property · Deal · cAlgo.API Since 5.1
DesktopCLICloud
Gets the channel.
Environment behaviour
CLI — works differently. Deals from the cBot's own orders carry channel 'cBot Console' instead of the desktop 'cBot cTrader'.
Cloud — works differently. Deals from the cBot's own orders carry channel 'cBot Cloud' instead of the desktop 'cBot cTrader'.
Definition
string Channel {get;}
deal.Channel: str
Returns string
Examples
var trade = History.FindLast("myLabel");
if (trade != null)
Print("Closing deal channel: {0}", trade.ClosingDeal.Channel);
trade = api.History.FindLast("myLabel")
if trade is not None:
api.Print(f"Closing deal channel: {trade.ClosingDeal.Channel}")