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

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

# HistoricalTrade.Quantity

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

## Quantity

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

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
double Quantity {get;}
```

Python:

```python
historicalTrade.Quantity: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var trade = History.FindLast("myLabel");
if (trade != null)
    Print("Closed quantity: {0} lots", trade.Quantity);
```

Python:

```python
trade = api.History.FindLast("myLabel")
if trade is not None:
    api.Print(f"Closed quantity: {trade.Quantity} lots")
```

