Skip to content

Position.Quantity

property · Position · cAlgo.API

DesktopCLICloud

Quantity of lots traded by the position.

Definition

double Quantity {get;}
position.Quantity: float

Returns double

Examples

var position = Positions.Find("myLabel");
if (position != null)
    Print("Quantity in lots: {0}", position.Quantity);
position = api.Positions.Find("myLabel")
if position is not None:
    api.Print(f"Quantity in lots: {position.Quantity}")