(self)
| 1389 | return True |
| 1390 | |
| 1391 | async def test_bybit(self): |
| 1392 | exchange = self.init_offline_exchange('bybit') |
| 1393 | req_headers = None |
| 1394 | id = 'CCXT' |
| 1395 | assert exchange.options['brokerId'] == id, 'id not in options' |
| 1396 | try: |
| 1397 | await exchange.create_order('BTC/USDT', 'limit', 'buy', 1, 20000) |
| 1398 | except Exception as e: |
| 1399 | # we expect an error here, we're only interested in the headers |
| 1400 | req_headers = exchange.last_request_headers |
| 1401 | assert req_headers['Referer'] == id, 'bybit - id: ' + id + ' not in headers.' |
| 1402 | if not is_sync(): |
| 1403 | await close(exchange) |
| 1404 | return True |
| 1405 | |
| 1406 | async def test_kucoin(self): |
| 1407 | exchange = self.init_offline_exchange('kucoin') |
no test coverage detected