BLD: updated CCXT and temporarily fixed symbol mapping issue

This commit is contained in:
Frederic Fortier
2018-01-18 21:57:11 -05:00
parent 540dd97dbf
commit 853707dfb2
7 changed files with 28 additions and 11 deletions
+2 -2
View File
@@ -72,14 +72,14 @@ class TestCCXT(BaseExchangeTestCase):
def test_tickers(self):
log.info('retrieving tickers')
assets = [
self.exchange.get_asset('eng_eth'),
self.exchange.get_asset('iot_usd'),
]
tickers = self.exchange.tickers(assets)
assert len(tickers) == 1
pass
def test_my_trades(self):
asset = self.exchange.get_asset('eng_eth')
asset = self.exchange.get_asset('dsh_btc')
trades = self.exchange.get_trades(asset)
assert trades
@@ -117,7 +117,7 @@ class TestSuiteBundle:
# population=exchange_population,
# features=[bundle],
# ) # Type: list[Exchange]
exchanges = [get_exchange('bitfinex', skip_init=True)]
exchanges = [get_exchange('poloniex', skip_init=True)]
data_portal = TestSuiteBundle.get_data_portal(exchanges)
for exchange in exchanges:
@@ -15,6 +15,7 @@ from catalyst.exchange.utils.test_utils import select_random_exchanges, \
handle_exchange_error, select_random_assets
from catalyst.testing import ZiplineTestCase
from catalyst.testing.fixtures import WithLogger
from exchange.utils.factory import get_exchanges
log = Logger('TestSuiteExchange')
@@ -83,12 +84,13 @@ class TestSuiteExchange(WithLogger, ZiplineTestCase):
def test_tickers(self):
exchange_population = 3
asset_population = 3
asset_population = 15
exchanges = select_random_exchanges(
exchange_population,
features=['fetchTickers'],
) # Type: list[Exchange]
# exchanges = select_random_exchanges(
# exchange_population,
# features=['fetchTickers'],
# ) # Type: list[Exchange]
exchanges = list(get_exchanges(['bitfinex']).values())
for exchange in exchanges:
exchange.init()