()
| 2647 | } |
| 2648 | |
| 2649 | public java.util.concurrent.CompletableFuture<Object> testWoofiPro() |
| 2650 | { |
| 2651 | |
| 2652 | return java.util.concurrent.CompletableFuture.supplyAsync(() -> { |
| 2653 | |
| 2654 | if (Helpers.isTrue(Helpers.isEqual(this.lang, "java"))) |
| 2655 | { |
| 2656 | return false; |
| 2657 | } |
| 2658 | Exchange exchange = this.initOfflineExchange("woofipro"); |
| 2659 | exchange.secret = "secretsecretsecretsecretsecretsecretsecrets"; |
| 2660 | Object id = "CCXT"; |
| 2661 | (exchange.loadMarkets()).join(); |
| 2662 | Object request = null; |
| 2663 | try |
| 2664 | { |
| 2665 | (exchange.createOrder("BTC/USDC:USDC", "limit", "buy", 1, 20000)).join(); |
| 2666 | } catch(Exception e) |
| 2667 | { |
| 2668 | request = jsonParse(exchange.last_request_body); |
| 2669 | } |
| 2670 | Object brokerId = Helpers.GetValue(request, "order_tag"); |
| 2671 | Assert(Helpers.isEqual(brokerId, id), Helpers.add(Helpers.add(Helpers.add("woofipro - id: ", id), " different from broker_id: "), brokerId)); |
| 2672 | if (!Helpers.isTrue(isSync())) |
| 2673 | { |
| 2674 | (close(exchange)).join(); |
| 2675 | } |
| 2676 | return true; |
| 2677 | }); |
| 2678 | |
| 2679 | } |
| 2680 | |
| 2681 | public java.util.concurrent.CompletableFuture<Object> testXT() |
| 2682 | { |
no test coverage detected