From 59fadabb5ba01bc113c0d87cced31a7e7074df66 Mon Sep 17 00:00:00 2001 From: hroff-1902 Date: Fri, 13 Mar 2020 20:26:14 +0300 Subject: [PATCH] Fix merging --- freqtrade/data/history/idatahandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/data/history/idatahandler.py b/freqtrade/data/history/idatahandler.py index ae050103b..1bb4d5971 100644 --- a/freqtrade/data/history/idatahandler.py +++ b/freqtrade/data/history/idatahandler.py @@ -150,7 +150,7 @@ class IDataHandler(ABC): if self._check_empty_df(pairdf, pair, timeframe, warn_no_data): return pairdf else: - enddate = df.iloc[-1]['date'] + enddate = pairdf.iloc[-1]['date'] if timerange_startup: self._validate_pairdata(pair, pairdf, timerange_startup)