()
| 2549 | } |
| 2550 | |
| 2551 | public java.util.concurrent.CompletableFuture<Object> testBlofin() |
| 2552 | { |
| 2553 | |
| 2554 | return java.util.concurrent.CompletableFuture.supplyAsync(() -> { |
| 2555 | |
| 2556 | Exchange exchange = this.initOfflineExchange("blofin"); |
| 2557 | Object id = "ec6dd3a7dd982d0b"; |
| 2558 | Object request = null; |
| 2559 | try |
| 2560 | { |
| 2561 | (exchange.createOrder("LTC/USDT:USDT", "market", "buy", 1)).join(); |
| 2562 | } catch(Exception e) |
| 2563 | { |
| 2564 | request = jsonParse(exchange.last_request_body); |
| 2565 | } |
| 2566 | Object brokerId = Helpers.GetValue(request, "brokerId"); |
| 2567 | Object idString = String.valueOf(id); |
| 2568 | Assert(((String)brokerId).startsWith(((String)idString)), Helpers.add(Helpers.add(Helpers.add("blofin - brokerId: ", brokerId), " does not start with id: "), idString)); |
| 2569 | if (!Helpers.isTrue(isSync())) |
| 2570 | { |
| 2571 | (close(exchange)).join(); |
| 2572 | } |
| 2573 | return true; |
| 2574 | }); |
| 2575 | |
| 2576 | } |
| 2577 | |
| 2578 | // async testHyperliquid () { |
| 2579 | // const exchange = this.initOfflineExchange ('hyperliquid'); |
no test coverage detected