MCPcopy Create free account
hub / github.com/ccxt/ccxt / test_cryptocom

Method test_cryptocom

python/ccxt/test/tests_async.py:1376–1389  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1374 return True
1375
1376 async def test_cryptocom(self):
1377 exchange = self.init_offline_exchange('cryptocom')
1378 id = 'CCXT'
1379 await exchange.load_markets()
1380 request = None
1381 try:
1382 await exchange.create_order('BTC/USDT', 'limit', 'buy', 1, 20000)
1383 except Exception as e:
1384 request = json_parse(exchange.last_request_body)
1385 broker_id = request['params']['broker_id']
1386 assert broker_id == id, 'cryptocom - id: ' + id + ' different from broker_id: ' + broker_id
1387 if not is_sync():
1388 await close(exchange)
1389 return True
1390
1391 async def test_bybit(self):
1392 exchange = self.init_offline_exchange('bybit')

Callers 1

run_broker_id_testsMethod · 0.95

Calls 6

init_offline_exchangeMethod · 0.95
json_parseFunction · 0.90
is_syncFunction · 0.90
closeFunction · 0.90
load_marketsMethod · 0.45
create_orderMethod · 0.45

Tested by

no test coverage detected