HistoricalOrder.FilledVolumeInUnits
property · HistoricalOrder · cAlgo.API Since 5.1
DesktopCLICloud
Order filled volume in units.
Definition
double? FilledVolumeInUnits {get;}
historicalOrder.FilledVolumeInUnits: float | None
Returns double?
Examples
var order = HistoricalOrders.FindLast("myLabel");
if (order != null && order.FilledVolumeInUnits.HasValue)
Print("Filled {0} of {1} units", order.FilledVolumeInUnits.Value, order.VolumeInUnits);
order = api.HistoricalOrders.FindLast("myLabel")
if order is not None and order.FilledVolumeInUnits is not None:
api.Print(f"Filled {order.FilledVolumeInUnits} of {order.VolumeInUnits} units")