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

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

# Plugin.TimeFrames

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

## TimeFrames

Gets collection of available TimeFrames.

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 TimeFrames TimeFrames {get;}
```

Python:

```python
api.TimeFrames: TimeFrames
```

### Returns

`TimeFrames` — 

Available since cAlgo.API 5.3.

### Examples

C#:

```csharp
foreach (var timeFrame in TimeFrames)
    Print("Time frame: {0}", timeFrame.Name);
```

Python:

```python
for timeFrame in api.TimeFrames:
    api.Print(f"Time frame: {timeFrame.Name}")
```

