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

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

# Position.GrossProfit

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

## GrossProfit

Gross profit accrued by the order associated with the position.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
double GrossProfit {get;}
```

Python:

```python
position.GrossProfit: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var position = Positions.Find("myLabel");
if (position != null)
    Print("Gross profit: {0}", position.GrossProfit);
```

Python:

```python
position = api.Positions.Find("myLabel")
if position is not None:
    api.Print(f"Gross profit: {position.GrossProfit}")
```

