Skip to content

HistoricalTrade.Quantity

property · HistoricalTrade · cAlgo.API

DesktopCLICloud

The Quantity (in lots) that was closed by the Closing Deal

Definition

double Quantity {get;}
historicalTrade.Quantity: float

Returns double

Examples

var trade = History.FindLast("myLabel");
if (trade != null)
    Print("Closed quantity: {0} lots", trade.Quantity);
trade = api.History.FindLast("myLabel")
if trade is not None:
    api.Print(f"Closed quantity: {trade.Quantity} lots")