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

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

# Plugin.History

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

## History

Represents the collection of all historical trades of the account.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Plugins cannot run in the CLI: ctrader-cli runs cBots only.
- Cloud: Plugins cannot run in the cloud: it runs cBots only.

C#:

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

Python:

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

### Returns

`History` — 

### Examples

C#:

```csharp
foreach (HistoricalTrade trade in History)
{
    Print(trade.EntryTime);
}
```

Python:

```python
for trade in api.History:
    print(trade.EntryTime)
```

