From 35afc7b478e8d2e928699a733cca62d409dd471c Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 8 Dec 2021 16:07:27 +0100 Subject: [PATCH] Fix wrong tradingMOde comparison --- freqtrade/data/history/hdf5datahandler.py | 2 +- freqtrade/data/history/jsondatahandler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(