Skip to content

Deal.Comment

property · Deal · cAlgo.API Since 5.1

DesktopCLICloud

Gets the comment.

Definition

string Comment {get;}
deal.Comment: str

Returns string

Examples

var position = Positions.Find("myLabel");
if (position != null)
{
    foreach (var deal in position.Deals)
        Print("Deal {0} comment: {1}", deal.Id, deal.Comment);
}
position = api.Positions.Find("myLabel")
if position is not None:
    for deal in position.Deals:
        api.Print(f"Deal {deal.Id} comment: {deal.Comment}")