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

Method fetchClosedOrdersWs

java/lib/src/main/java/io/github/ccxt/Exchange.java:11102–11119  ·  view source on GitHub ↗
(Object... optionalArgs)

Source from the content-addressed store, hash-verified

11100 }
11101
11102 public java.util.concurrent.CompletableFuture<Object> fetchClosedOrdersWs(Object... optionalArgs)
11103 {
11104
11105 return java.util.concurrent.CompletableFuture.supplyAsync(() -> {
11106
11107 Object symbol = Helpers.getArg(optionalArgs, 0, null);
11108 Object since = Helpers.getArg(optionalArgs, 1, null);
11109 Object limit = Helpers.getArg(optionalArgs, 2, null);
11110 Object parameters = Helpers.getArg(optionalArgs, 3, new java.util.HashMap<String, Object>() {{}});
11111 if (Helpers.isTrue(Helpers.GetValue(this.has, "fetchOrdersWs")))
11112 {
11113 Object orders = (this.fetchOrdersWs(symbol, since, limit, parameters)).join();
11114 return this.filterBy(orders, "status", "closed");
11115 }
11116 throw new NotSupported((String)Helpers.add(this.id, " fetchClosedOrdersWs() is not supported yet")) ;
11117 });
11118
11119 }
11120
11121 public java.util.concurrent.CompletableFuture<Object> fetchMyTrades(Object... optionalArgs)
11122 {

Callers 1

Calls 6

getArgMethod · 0.95
isTrueMethod · 0.95
GetValueMethod · 0.95
fetchOrdersWsMethod · 0.95
filterByMethod · 0.95
addMethod · 0.95

Tested by

no test coverage detected