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

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

# Deal.ExecutionPrice

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

## ExecutionPrice

Returns deal execution price if deal is filled otherwise null.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
double? ExecutionPrice {get;}
```

Python:

```python
deal.ExecutionPrice: float | None
```

### Returns

`double?` — 

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
var trade = History.FindLast("myLabel");
if (trade != null && trade.ClosingDeal.ExecutionPrice.HasValue)
    Print("Closing deal executed at {0}", trade.ClosingDeal.ExecutionPrice.Value);
```

Python:

```python
trade = api.History.FindLast("myLabel")
if trade is not None and trade.ClosingDeal.ExecutionPrice is not None:
    api.Print(f"Closing deal executed at {trade.ClosingDeal.ExecutionPrice}")
```

