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]
|
pairs_to_download = [p for p in pairs if p not in candles]
|
||||||
if pairs_to_download:
|
if pairs_to_download:
|
||||||
candles = self.refresh_latest_ohlcv(pairs_to_download, since_ms=since_ms, cache=False)
|
candles_new = self.refresh_latest_ohlcv(
|
||||||
for c, val in candles.items():
|
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
|
self._expiring_candle_cache[(c[1], since_ms)][c] = val
|
||||||
return candles
|
return candles
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user