(self)
| 1471 | return True |
| 1472 | |
| 1473 | async def test_bitget(self): |
| 1474 | exchange = self.init_offline_exchange('bitget') |
| 1475 | req_headers = None |
| 1476 | id = 'p4sve' |
| 1477 | assert exchange.options['broker'] == id, 'bitget - id: ' + id + ' not in options' |
| 1478 | try: |
| 1479 | await exchange.create_order('BTC/USDT', 'limit', 'buy', 1, 20000) |
| 1480 | except Exception as e: |
| 1481 | req_headers = exchange.last_request_headers |
| 1482 | assert req_headers['X-CHANNEL-API-CODE'] == id, 'bitget - id: ' + id + ' not in headers.' |
| 1483 | if not is_sync(): |
| 1484 | await close(exchange) |
| 1485 | return True |
| 1486 | |
| 1487 | async def test_mexc(self): |
| 1488 | exchange = self.init_offline_exchange('mexc') |
no test coverage detected