Avoid "restart" failure - reset ccxt cache

This commit is contained in:
Matthias
2024-06-07 19:03:28 +02:00
parent 9da0437e3d
commit 0eeaee21fb

View File

@@ -70,6 +70,9 @@ class ExchangeWS:
async def _cleanup_async(self) -> None:
try:
await self.ccxt_object.close()
# Clear the cache.
# Not doing this will cause problems on startup with dynamic pairlists
self.ccxt_object.ohlcvs.clear()
except Exception:
logger.exception("Exception in _cleanup_async")
finally: