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

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

# AbsoluteTakeProfitProtections.SecondTakeProfit

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

## SecondTakeProfit

Gets the second partial take profit, if any.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public AbsoluteTakeProfitProtection SecondTakeProfit {get;}
```

Python:

```python
absoluteTakeProfitProtections.SecondTakeProfit: AbsoluteTakeProfitProtection
```

### Returns

`AbsoluteTakeProfitProtection` — 

Available since cAlgo.API 5.8.

### Examples

C#:

```csharp
var position = Positions.Find("myLabel");
var secondTakeProfit = position?.AbsoluteTakeProfitProtections?.SecondTakeProfit;
if (secondTakeProfit != null)
    Print("Second take profit: {0} units at {1}", secondTakeProfit.Volume, secondTakeProfit.Price);
```

Python:

```python
position = api.Positions.Find("myLabel")
if position is not None and position.AbsoluteTakeProfitProtections is not None and position.AbsoluteTakeProfitProtections.SecondTakeProfit is not None:
    secondTakeProfit = position.AbsoluteTakeProfitProtections.SecondTakeProfit
    api.Print(f"Second take profit: {secondTakeProfit.Volume} units at {secondTakeProfit.Price}")
```

