(self)
| 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'); |
no test coverage detected