mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-11 11:16:15 +08:00
BLD: updated CCXT and temporarily fixed symbol mapping issue
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user