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

Method fetchOpenOrdersWs

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

Source from the content-addressed store, hash-verified

11034 }
11035
11036 public java.util.concurrent.CompletableFuture<Object> fetchOpenOrdersWs(Object... optionalArgs)
11037 {
11038
11039 return java.util.concurrent.CompletableFuture.supplyAsync(() -> {
11040
11041 Object symbol = Helpers.getArg(optionalArgs, 0, null);
11042 Object since = Helpers.getArg(optionalArgs, 1, null);
11043 Object limit = Helpers.getArg(optionalArgs, 2, null);
11044 Object parameters = Helpers.getArg(optionalArgs, 3, new java.util.HashMap<String, Object>() {{}});
11045 if (Helpers.isTrue(Helpers.GetValue(this.has, "fetchOrdersWs")))
11046 {
11047 Object orders = (this.fetchOrdersWs(symbol, since, limit, parameters)).join();
11048 return this.filterBy(orders, "status", "open");
11049 }
11050 throw new NotSupported((String)Helpers.add(this.id, " fetchOpenOrdersWs() is not supported yet")) ;
11051 });
11052
11053 }
11054
11055 public java.util.concurrent.CompletableFuture<Object> fetchClosedOrders(Object... optionalArgs)
11056 {

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