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

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

# Algo.TimeFrames

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

## TimeFrames

Gets collection of available TimeFrames.

Environments: Desktop supported · CLI supported · Cloud supported.

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("{0} ({1})", timeFrame.Name, timeFrame.ShortName);
```

Python:

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

