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

Method fetchOpenOrders

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

Source from the content-addressed store, hash-verified

11015 }
11016
11017 public java.util.concurrent.CompletableFuture<Object> fetchOpenOrders(Object... optionalArgs)
11018 {
11019
11020 return java.util.concurrent.CompletableFuture.supplyAsync(() -> {
11021
11022 Object symbol = Helpers.getArg(optionalArgs, 0, null);
11023 Object since = Helpers.getArg(optionalArgs, 1, null);
11024 Object limit = Helpers.getArg(optionalArgs, 2, null);
11025 Object parameters = Helpers.getArg(optionalArgs, 3, new java.util.HashMap<String, Object>() {{}});
11026 if (Helpers.isTrue(Helpers.GetValue(this.has, "fetchOrders")))
11027 {
11028 Object orders = (this.fetchOrders(symbol, since, limit, parameters)).join();
11029 return this.filterBy(orders, "status", "open");
11030 }
11031 throw new NotSupported((String)Helpers.add(this.id, " fetchOpenOrders() is not supported yet")) ;
11032 });
11033
11034 }
11035
11036 public java.util.concurrent.CompletableFuture<Object> fetchOpenOrdersWs(Object... optionalArgs)
11037 {

Callers 1

fetchOpenOrdersAsyncMethod · 0.95

Calls 6

getArgMethod · 0.95
isTrueMethod · 0.95
GetValueMethod · 0.95
fetchOrdersMethod · 0.95
filterByMethod · 0.95
addMethod · 0.95

Tested by

no test coverage detected