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

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

# Deal.Closing

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

## Closing

If deal was a closing deal then this property will return the deals that were closed by current deal.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
IReadonlyList<Deal> Closing {get;}
```

Python:

```python
deal.Closing: IReadonlyList[Deal]
```

### Returns

`IReadonlyList<Deal>` — 

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
var trade = History.FindLast("myLabel");
if (trade != null)
{
    foreach (var openingDeal in trade.ClosingDeal.Closing)
        Print("Closing deal closed opening deal {0} executed at {1}", openingDeal.Id, openingDeal.ExecutionPrice);
}
```

Python:

```python
trade = api.History.FindLast("myLabel")
if trade is not None:
    for openingDeal in trade.ClosingDeal.Closing:
        api.Print(f"Closing deal closed opening deal {openingDeal.Id} executed at {openingDeal.ExecutionPrice}")
```

