From 66910bfe63e86edf54b86d6bfd87852153c8ef0a Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 17 Aug 2022 10:04:09 +0200 Subject: [PATCH] Don't fail if mark candles are missing closes #7239 --- freqtrade/data/history/history_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/data/history/history_utils.py b/freqtrade/data/history/history_utils.py index c972c841c..6e003c17b 100644 --- a/freqtrade/data/history/history_utils.py +++ b/freqtrade/data/history/history_utils.py @@ -56,7 +56,7 @@ def load_pair_history(pair: str, fill_missing=fill_up_missing, drop_incomplete=drop_incomplete, startup_candles=startup_candles, - candle_type=candle_type + candle_type=candle_type, ) @@ -97,14 +97,14 @@ def load_data(datadir: Path, fill_up_missing=fill_up_missing, startup_candles=startup_candles, data_handler=data_handler, - candle_type=candle_type + candle_type=candle_type, ) if not hist.empty: result[pair] = hist else: if candle_type is CandleType.FUNDING_RATE and user_futures_funding_rate is not None: logger.warn(f"{pair} using user specified [{user_futures_funding_rate}]") - result[pair] = DataFrame(columns=["open", "close", "high", "low", "volume"]) + result[pair] = DataFrame(columns=["date", "open", "close", "high", "low", "volume"]) if fail_without_data and not result: raise OperationalException("No data found. Terminating.")