HistoricalTrade.VolumeInUnits
property · HistoricalTrade · cAlgo.API
DesktopCLICloud
The Volume that was closed by the Closing Deal.
Definition
double VolumeInUnits {get;}
historicalTrade.VolumeInUnits: float
Returns double
Examples
var trade = History.FindLast("myLabel");
if (trade != null)
Print("Closed volume: {0} units", trade.VolumeInUnits);
trade = api.History.FindLast("myLabel")
if trade is not None:
api.Print(f"Closed volume: {trade.VolumeInUnits} units")