When getting analyzed dataframes, use candle_type_def in the pair_key as that's how they're cached.

This commit is contained in:
Wade Dyck 2021-12-27 13:29:25 -07:00
parent 90c565006b
commit 5743b3a0b7

View File

@ -134,7 +134,7 @@ class DataProvider:
combination.
Returns empty dataframe and Epoch 0 (1970-01-01) if no dataframe was cached.
"""
pair_key = (pair, timeframe, CandleType.SPOT)
pair_key = (pair, timeframe, self._config.get('candle_type_def', CandleType.SPOT))
if pair_key in self.__cached_pairs:
if self.runmode in (RunMode.DRY_RUN, RunMode.LIVE):
df, date = self.__cached_pairs[pair_key]