(self)
| 1485 | return True |
| 1486 | |
| 1487 | async def test_mexc(self): |
| 1488 | exchange = self.init_offline_exchange('mexc') |
| 1489 | req_headers = None |
| 1490 | id = 'CCXT' |
| 1491 | assert exchange.options['broker'] == id, 'mexc - id: ' + id + ' not in options' |
| 1492 | await exchange.load_markets() |
| 1493 | try: |
| 1494 | await exchange.create_order('BTC/USDT', 'limit', 'buy', 1, 20000) |
| 1495 | except Exception as e: |
| 1496 | req_headers = exchange.last_request_headers |
| 1497 | assert req_headers['source'] == id, 'mexc - id: ' + id + ' not in headers.' |
| 1498 | if not is_sync(): |
| 1499 | await close(exchange) |
| 1500 | return True |
| 1501 | |
| 1502 | async def test_htx(self): |
| 1503 | exchange = self.init_offline_exchange('htx') |
no test coverage detected