Also reload async markets

fixes #2876 - Logs and Empty ticker history  for new pair
This commit is contained in:
Matthias
2020-06-17 07:23:20 +02:00
parent 5e99be0a32
commit d4fb5af456
2 changed files with 5 additions and 0 deletions

View File

@@ -285,6 +285,8 @@ class Exchange:
logger.debug("Performing scheduled market reload..")
try:
self._api.load_markets(reload=True)
# Also reload async markets to avoid issues with newly listed pairs
self._load_async_markets(reload=True)
self._last_markets_refresh = arrow.utcnow().timestamp
except ccxt.BaseError:
logger.exception("Could not reload markets.")