fix asyncio.set_event_loop() missetting when FreqAI is active

This commit is contained in:
robcaulk 2022-08-07 14:39:21 +02:00
parent e48e82232d
commit 2b881e3789

View File

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