---
id: "P:cAlgo.API.HistoricalTrade.VolumeInUnits"
kind: "property"
type: "T:cAlgo.API.HistoricalTrade"
url: "https://help.ctrader.com/ctrader-algo/references/Trading/History/HistoricalTrade/VolumeInUnits/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# HistoricalTrade.VolumeInUnits

Member of [HistoricalTrade](https://help.ctrader.com/ctrader-algo/references/Trading/History/HistoricalTrade/index.md).

## VolumeInUnits

The Volume that was closed by the Closing Deal.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
double VolumeInUnits {get;}
```

Python:

```python
historicalTrade.VolumeInUnits: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var trade = History.FindLast("myLabel");
if (trade != null)
    Print("Closed volume: {0} units", trade.VolumeInUnits);
```

Python:

```python
trade = api.History.FindLast("myLabel")
if trade is not None:
    api.Print(f"Closed volume: {trade.VolumeInUnits} units")
```

