---
id: "P:cAlgo.API.BacktestingDataSourceMinMaxTimeArgs.DataType"
kind: "property"
type: "T:cAlgo.API.BacktestingDataSourceMinMaxTimeArgs"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Backtesting/DataSource/BacktestingDataSourceMinMaxTimeArgs/DataType/"
---

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

# BacktestingDataSourceMinMaxTimeArgs.DataType

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

## DataType

Gets data type for the min / max time request.

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

- CLI: Available to plugins only, and plugins cannot run in the CLI.
- Cloud: Available to plugins only, and plugins cannot run in the cloud.

C#:

```csharp
public BacktestingDataSourceDataType DataType {get;}
```

Python:

```python
backtestingDataSourceMinMaxTimeArgs.DataType: BacktestingDataSourceDataType
```

### Returns

`BacktestingDataSourceDataType` — 

Available since cAlgo.API 5.3.

### Examples

C#:

```csharp
private BacktestingMinMaxTime OnMinMaxTimeRequested(BacktestingDataSourceMinMaxTimeArgs args)
{
    var days = args.DataType == BacktestingDataSourceDataType.Tick ? 30 : 365;
    return new BacktestingMinMaxTime(Server.Time.AddDays(-days), Server.Time);
}
```

Python:

```python
def on_min_max_time_requested(self, args):
    days = 30 if args.DataType == BacktestingDataSourceDataType.Tick else 365
    return BacktestingMinMaxTime(api.Server.Time.AddDays(-days), api.Server.Time)
```

