mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-03-30 00:54:33 +00:00
fix: problem in ohlcv_with_cache
This commit is contained in:
@@ -2896,8 +2896,11 @@ class Exchange:
|
||||
}
|
||||
pairs_to_download = [p for p in pairs if p not in candles]
|
||||
if pairs_to_download:
|
||||
candles = self.refresh_latest_ohlcv(pairs_to_download, since_ms=since_ms, cache=False)
|
||||
for c, val in candles.items():
|
||||
candles_new = self.refresh_latest_ohlcv(
|
||||
pairs_to_download, since_ms=since_ms, cache=False
|
||||
)
|
||||
for c, val in candles_new.items():
|
||||
candles[c] = val
|
||||
self._expiring_candle_cache[(c[1], since_ms)][c] = val
|
||||
return candles
|
||||
|
||||
|
||||
Reference in New Issue
Block a user