diff --git a/freqtrade/data/history/hdf5datahandler.py b/freqtrade/data/history/hdf5datahandler.py index cc01d51ca..6483cfb21 100644 --- a/freqtrade/data/history/hdf5datahandler.py +++ b/freqtrade/data/history/hdf5datahandler.py @@ -29,7 +29,7 @@ class HDF5DataHandler(IDataHandler): :param trading_mode: trading-mode to be used :return: List of Tuples of (pair, timeframe) """ - if trading_mode != 'spot': + if trading_mode == 'futures': datadir = datadir.joinpath('futures') _tmp = [ re.search( diff --git a/freqtrade/data/history/jsondatahandler.py b/freqtrade/data/history/jsondatahandler.py index 939f18931..82ab1abbf 100644 --- a/freqtrade/data/history/jsondatahandler.py +++ b/freqtrade/data/history/jsondatahandler.py @@ -31,7 +31,7 @@ class JsonDataHandler(IDataHandler): :param trading_mode: trading-mode to be used :return: List of Tuples of (pair, timeframe) """ - if trading_mode != 'spot': + if trading_mode == 'futures': datadir = datadir.joinpath('futures') _tmp = [ re.search(