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

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

# BacktestingDataSourceOptions.MinMaxTimeHandler

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

## MinMaxTimeHandler

Handler function for getting minimum and maximum time.

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 Func<BacktestingDataSourceMinMaxTimeArgs, BacktestingMinMaxTime> MinMaxTimeHandler {get; set;}
```

Python:

```python
backtestingDataSourceOptions.MinMaxTimeHandler: Callable[[BacktestingDataSourceMinMaxTimeArgs], BacktestingMinMaxTime]
```

### Returns

`Func<BacktestingDataSourceMinMaxTimeArgs, BacktestingMinMaxTime>` — 

Available since cAlgo.API 5.3.

