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

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

# Algo.History

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

## History

Represents the collection of all historical trades of the account.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public History History {get;}
```

Python:

```python
api.History: History
```

### Returns

`History` — 

### Examples

C#:

```csharp
foreach (var trade in History)
{
    Print("Entry time: {0}, Net profit: {1}", trade.EntryTime, trade.NetProfit);
}
```

Python:

```python
for trade in api.History:
    api.Print(f"Entry time: {trade.EntryTime}, Net profit: {trade.NetProfit}")
```

