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

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

# HistoricalOrder.Quantity

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

## Quantity

Order quantity (lots).

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

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

Python:

```python
historicalOrder.Quantity: float
```

### Returns

`double` — 

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
var order = HistoricalOrders.FindLast("myLabel");
if (order != null)
    Print("Order quantity: {0} lots", order.Quantity);
```

Python:

```python
order = api.HistoricalOrders.FindLast("myLabel")
if order is not None:
    api.Print(f"Order quantity: {order.Quantity} lots")
```

