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

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

# HistoricalOrder.FilledQuantity

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

## FilledQuantity

Order filled quantity (lots).

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
double? FilledQuantity {get;}
```

Python:

```python
historicalOrder.FilledQuantity: float | None
```

### Returns

`double?` — 

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
var order = HistoricalOrders.FindLast("myLabel");
if (order != null && order.FilledQuantity.HasValue)
    Print("Filled {0} of {1} lots", order.FilledQuantity.Value, order.Quantity);
```

Python:

```python
order = api.HistoricalOrders.FindLast("myLabel")
if order is not None and order.FilledQuantity is not None:
    api.Print(f"Filled {order.FilledQuantity} of {order.Quantity} lots")
```

