BLD: adjustments from testing

This commit is contained in:
Frederic Fortier
2018-02-27 23:10:09 -05:00
parent 25dc3ee737
commit fec829b82e
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ LOG_LEVEL = int(os.environ.get('CATALYST_LOG_LEVEL', logbook.INFO))
SYMBOLS_URL = 'https://s3.amazonaws.com/enigmaco/catalyst-exchanges/' \
'{exchange}/symbols.json'
EXCHANGE_CONFIG_URL = 'http://127.0.0.1:8080/exchanges/{exchange}/config.json'
EXCHANGE_CONFIG_URL = 'https://s3.amazonaws.com/enigmaco/exchanges/' \
'{exchange}/config.json'
DATE_TIME_FORMAT = '%Y-%m-%d %H:%M'
DATE_FORMAT = '%Y-%m-%d'
+1 -1
View File
@@ -194,7 +194,7 @@ class CCXT(Exchange):
return TradingPair(**params)
def load_assets(self):
if self._config is None:
if self._config is None or 'error' in self._config:
raise ValueError('Exchange config not available.')
self.assets = []
@@ -197,7 +197,7 @@ class TestSuiteBundle:
# population=exchange_population,
# features=[bundle],
# ) # Type: list[Exchange]
exchanges = [get_exchange('poloniex', skip_init=True)]
exchanges = [get_exchange('binance', skip_init=True)]
data_portal = TestSuiteBundle.get_data_portal(exchanges)
for exchange in exchanges: