Convert datadir within config to Path

(it's used as Path all the time!)
This commit is contained in:
Matthias
2019-12-23 15:09:17 +01:00
parent 506907ddc9
commit bb8acc61db
5 changed files with 9 additions and 11 deletions

View File

@@ -5,7 +5,6 @@ including Klines, tickers, historic data
Common Interface for bot and strategy to access data.
"""
import logging
from pathlib import Path
from typing import Any, Dict, List, Optional, Tuple
from pandas import DataFrame
@@ -65,7 +64,7 @@ class DataProvider:
"""
return load_pair_history(pair=pair,
timeframe=timeframe or self._config['ticker_interval'],
datadir=Path(self._config['datadir'])
datadir=self._config['datadir']
)
def get_pair_dataframe(self, pair: str, timeframe: str = None) -> DataFrame: