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

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

# HistoricalTrade.ClosingPrice

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

## ClosingPrice

The execution price of the Closing Deal.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
double ClosingPrice {get;}
```

Python:

```python
historicalTrade.ClosingPrice: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var trade = History.FindLast("myLabel");
if (trade != null)
    Print("Closing price: {0}", trade.ClosingPrice);
```

Python:

```python
trade = api.History.FindLast("myLabel")
if trade is not None:
    api.Print(f"Closing price: {trade.ClosingPrice}")
```

