MCPcopy Index your code
hub / github.com/ccxt/ccxt / testWoofiPro

Method testWoofiPro

java/tests/src/main/java/tests/exchange/TestMain.java:2649–2679  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers 1

runBrokerIdTestsMethod · 0.95

Calls 11

isTrueMethod · 0.95
isEqualMethod · 0.95
initOfflineExchangeMethod · 0.95
loadMarketsMethod · 0.95
createOrderMethod · 0.95
GetValueMethod · 0.95
addMethod · 0.95
jsonParseMethod · 0.80
AssertMethod · 0.80
isSyncMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected