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

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

# Position.Quantity

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

## Quantity

Quantity of lots traded by the position.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

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

Python:

```python
position.Quantity: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var position = Positions.Find("myLabel");
if (position != null)
    Print("Quantity in lots: {0}", position.Quantity);
```

Python:

```python
position = api.Positions.Find("myLabel")
if position is not None:
    api.Print(f"Quantity in lots: {position.Quantity}")
```

