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

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

# RelativeTakeProfitProtections.FirstTakeProfit

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

## FirstTakeProfit

Gets the first partial take profit, if any.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public RelativeTakeProfitProtection FirstTakeProfit {get;}
```

Python:

```python
relativeTakeProfitProtections.FirstTakeProfit: RelativeTakeProfitProtection
```

### Returns

`RelativeTakeProfitProtection` — 

Available since cAlgo.API 5.8.

### Examples

C#:

```csharp
var takeProfits = new RelativeTakeProfitProtections(new RelativeTakeProfitProtection(10000, 20), new RelativeTakeProfitLastProtection(40));
Print("First take profit: {0} units at {1} pips", takeProfits.FirstTakeProfit.Volume, takeProfits.FirstTakeProfit.Distance);
```

Python:

```python
takeProfits = RelativeTakeProfitProtections(RelativeTakeProfitProtection(10000, 20), RelativeTakeProfitLastProtection(40))
api.Print(f"First take profit: {takeProfits.FirstTakeProfit.Volume} units at {takeProfits.FirstTakeProfit.Distance} pips")
```

