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

Method test_coinbase_advanced

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

Source from the content-addressed store, hash-verified

1665 return True
1666
1667 async def test_coinbase_advanced(self):
1668 exchange = self.init_offline_exchange('coinbase')
1669 id = 'ccxt'
1670 assert exchange.options['brokerId'] == id, 'id not in options'
1671 request = None
1672 try:
1673 await exchange.create_order('BTC/USDC', 'limit', 'buy', 1, 20000)
1674 except Exception as e:
1675 request = json_parse(exchange.last_request_body)
1676 client_order_id = request['client_order_id']
1677 assert client_order_id.startswith(str(id)), 'clientOrderId does not start with id'
1678 if not is_sync():
1679 await close(exchange)
1680 return True
1681
1682 async def test_woofi_pro(self):
1683 if self.lang == 'java':

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