Adjust imports to data.history

This commit is contained in:
Matthias
2018-12-13 06:34:10 +01:00
parent 0250a96feb
commit 432cc00283
3 changed files with 8 additions and 5 deletions

View File

@@ -18,6 +18,7 @@ from freqtrade import DependencyException, constants
from freqtrade.arguments import Arguments
from freqtrade.configuration import Configuration
from freqtrade.exchange import Exchange
from freqtrade.data import history
from freqtrade.misc import file_dump_json
from freqtrade.persistence import Trade
from freqtrade.resolvers import StrategyResolver
@@ -368,7 +369,7 @@ class Backtesting(object):
timerange = Arguments.parse_timerange(None if self.config.get(
'timerange') is None else str(self.config.get('timerange')))
data = optimize.load_data(
data = history.load_data(
self.config['datadir'],
pairs=pairs,
ticker_interval=self.ticker_interval,

View File

@@ -20,7 +20,8 @@ from skopt.space import Dimension
from freqtrade.arguments import Arguments
from freqtrade.configuration import Configuration
from freqtrade.optimize import load_data, get_timeframe
from freqtrade.data.history import load_data
from freqtrade.optimize import get_timeframe
from freqtrade.optimize.backtesting import Backtesting
from freqtrade.resolvers import HyperOptResolver