---
id: "P:cAlgo.API.HistoricalOrders.Item(System.Int32)"
kind: "property"
type: "T:cAlgo.API.HistoricalOrders"
url: "https://help.ctrader.com/ctrader-algo/references/Trading/HistoricalOrders/HistoricalOrders/Item/"
---

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

# HistoricalOrders.Item

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

## Item

Access historical orders by their index.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
HistoricalOrder Item {get;}
```

Python:

```python
api.HistoricalOrders[index: int] -> HistoricalOrder
```

### Parameters

- `index` (`int`, Python `int`):

### Returns

`HistoricalOrder` — 

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
if (HistoricalOrders.Count > 0)
    Print("First historical order Id: {0}", HistoricalOrders[0].Id);
```

Python:

```python
if api.HistoricalOrders.Count > 0:
    api.Print(f"First historical order Id: {api.HistoricalOrders[0].Id}")
```

