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

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

# Deal.Comment

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

## Comment

Gets the comment.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
string Comment {get;}
```

Python:

```python
deal.Comment: str
```

### Returns

`string` — 

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
var position = Positions.Find("myLabel");
if (position != null)
{
    foreach (var deal in position.Deals)
        Print("Deal {0} comment: {1}", deal.Id, deal.Comment);
}
```

Python:

```python
position = api.Positions.Find("myLabel")
if position is not None:
    for deal in position.Deals:
        api.Print(f"Deal {deal.Id} comment: {deal.Comment}")
```

