Make _reload_markets() public

This commit is contained in:
hroff-1902
2020-06-10 01:39:23 +03:00
parent 6744f8f052
commit 7d451638a8
3 changed files with 9 additions and 9 deletions

View File

@@ -264,8 +264,8 @@ class Exchange:
except ccxt.BaseError as e:
logger.warning('Unable to initialize markets. Reason: %s', e)
def _reload_markets(self) -> None:
"""Reload markets if refresh interval has passed"""
def reload_markets(self) -> None:
"""Reload markets if refresh interval has passed """
# Check whether markets have to be reloaded
if (self._last_markets_refresh > 0) and (
self._last_markets_refresh + self.markets_refresh_interval