Fix bug in exchange causing candles not to download

This commit is contained in:
Matthias 2021-11-27 17:00:06 +01:00
parent 504efbd6d4
commit 107e124f60

View File

@ -1494,9 +1494,9 @@ class Exchange:
"Fetching pair %s, interval %s, since %s %s...",
pair, timeframe, since_ms, s
)
params = self._ft_has.get('ohlcv_params', {})
params = deepcopy(self._ft_has.get('ohlcv_params', {}))
if candle_type:
params = params.update({'price': candle_type})
params.update({'price': candle_type})
data = await self._api_async.fetch_ohlcv(pair, timeframe=timeframe,
since=since_ms,
limit=self.ohlcv_candle_limit(timeframe),