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

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

# Deal.ExecutionTime

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

## ExecutionTime

Returns deal execution time.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
DateTime ExecutionTime {get;}
```

Python:

```python
deal.ExecutionTime: DateTime
```

### Returns

`DateTime` — 

Available since cAlgo.API 5.1.

### Examples

C#:

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

Python:

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

