fix tests - move load_async_markets call to validate_pairs

This commit is contained in:
Matthias
2018-08-10 13:11:04 +02:00
parent fce071843d
commit 88e85e8d33
3 changed files with 22 additions and 12 deletions

View File

@@ -78,7 +78,6 @@ class Exchange(object):
self._api = self._init_ccxt(exchange_config)
self._api_async = self._init_ccxt(exchange_config, ccxt_async)
self._load_async_markets()
logger.info('Using Exchange "%s"', self.name)
# Check if all pairs are available
@@ -152,6 +151,7 @@ class Exchange(object):
try:
markets = self._api.load_markets()
self._load_async_markets()
except ccxt.BaseError as e:
logger.warning('Unable to validate pairs (assuming they are correct). Reason: %s', e)
return