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