fix asyncio bug

This commit is contained in:
robcaulk 2022-08-07 14:48:39 +02:00
parent eb8bde37c1
commit 67c722c9c8
1 changed files with 1 additions and 0 deletions

View File

@ -482,6 +482,7 @@ class Exchange:
def reload_markets(self) -> None:
"""Reload markets both sync and async if refresh interval has passed """
asyncio.set_event_loop(self.loop)
# Check whether markets have to be reloaded
if (self._last_markets_refresh > 0) and (
self._last_markets_refresh + self.markets_refresh_interval