refactor timerange to named tuple

This commit is contained in:
xmatthias
2018-06-05 23:34:26 +02:00
parent 7d3eefa97a
commit 7a34578b4d
4 changed files with 42 additions and 34 deletions

View File

@@ -497,7 +497,7 @@ class Hyperopt(Backtesting):
def start(self) -> None:
timerange = Arguments.parse_timerange(None if self.config.get(
'timerange') is None else str(self.config.get('timerange')))
data = load_data( # type: ignore # timerange will be refactored
data = load_data(
datadir=str(self.config.get('datadir')),
pairs=self.config['exchange']['pair_whitelist'],
ticker_interval=self.ticker_interval,