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

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

# HistoricalOrder.TargetPrice

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

## TargetPrice

Order target price

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
double TargetPrice {get;}
```

Python:

```python
historicalOrder.TargetPrice: float
```

### Returns

`double` — 

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
var order = HistoricalOrders.FindLast("myLabel");
if (order != null)
    Print("Order target price: {0}", order.TargetPrice);
```

Python:

```python
order = api.HistoricalOrders.FindLast("myLabel")
if order is not None:
    api.Print(f"Order target price: {order.TargetPrice}")
```

