---
id: "P:cAlgo.API.Internals.Algo.HistoricalOrders"
kind: "property"
type: "T:cAlgo.API.Internals.Algo"
url: "https://help.ctrader.com/ctrader-algo/references/General/Algo/HistoricalOrders/"
---

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

# Algo.HistoricalOrders

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

## HistoricalOrders

Provides access to historical orders.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public HistoricalOrders HistoricalOrders {get;}
```

Python:

```python
api.HistoricalOrders: HistoricalOrders
```

### Returns

`HistoricalOrders` — 

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
var lastOrder = HistoricalOrders.FindLast("myLabel", SymbolName);
if (lastOrder != null)
    Print("Order {0} status: {1}, submitted at {2}", lastOrder.Id, lastOrder.Status, lastOrder.SubmittedTime);
```

Python:

```python
lastOrder = api.HistoricalOrders.FindLast("myLabel", api.SymbolName)
if lastOrder is not None:
    api.Print(f"Order {lastOrder.Id} status: {lastOrder.Status}, submitted at {lastOrder.SubmittedTime}")
```

