---
id: "P:cAlgo.API.HistoricalOrder.Label"
kind: "property"
type: "T:cAlgo.API.HistoricalOrder"
url: "https://help.ctrader.com/ctrader-algo/references/Trading/HistoricalOrders/HistoricalOrder/Label/"
---

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

# HistoricalOrder.Label

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

## Label

Order label.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
string Label {get;}
```

Python:

```python
historicalOrder.Label: str
```

### Returns

`string` — 

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
var labelledOrders = HistoricalOrders.Count(order => order.Label == "myLabel");
Print("Historical myLabel orders: {0}", labelledOrders);
```

Python:

```python
labelledOrders = len([order for order in api.HistoricalOrders if order.Label == "myLabel"])
api.Print(f"Historical myLabel orders: {labelledOrders}")
```

