Position.Label
property · Position · cAlgo.API
DesktopCLICloud
Label can be used to represent the order.
Definition
string Label {get;}
position.Label: str
Returns string
Examples
var result = ExecuteMarketOrder(TradeType.Sell, SymbolName, 10000, "myLabel");
if (result.IsSuccessful)
Print("Position {0} is open", result.Position.Label);
result = api.ExecuteMarketOrder(TradeType.Sell, api.SymbolName, 10000, "myLabel")
if result.IsSuccessful:
api.Print(f"Position {result.Position.Label} is open")