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

Method test_blofin

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

Source from the content-addressed store, hash-verified

1618 return True
1619
1620 async def test_blofin(self):
1621 exchange = self.init_offline_exchange('blofin')
1622 id = 'ec6dd3a7dd982d0b'
1623 request = None
1624 try:
1625 await exchange.create_order('LTC/USDT:USDT', 'market', 'buy', 1)
1626 except Exception as e:
1627 request = json_parse(exchange.last_request_body)
1628 broker_id = request['brokerId']
1629 id_string = str(id)
1630 assert broker_id.startswith(id_string), 'blofin - brokerId: ' + broker_id + ' does not start with id: ' + id_string
1631 if not is_sync():
1632 await close(exchange)
1633 return True
1634
1635 # async testHyperliquid () {
1636 # const exchange = this.initOfflineExchange ('hyperliquid');

Callers 1

run_broker_id_testsMethod · 0.95

Calls 5

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

Tested by

no test coverage detected