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

Method fetchClosedOrders

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

Source from the content-addressed store, hash-verified

11053 }
11054
11055 public java.util.concurrent.CompletableFuture<Object> fetchClosedOrders(Object... optionalArgs)
11056 {
11057
11058 return java.util.concurrent.CompletableFuture.supplyAsync(() -> {
11059
11060 Object symbol = Helpers.getArg(optionalArgs, 0, null);
11061 Object since = Helpers.getArg(optionalArgs, 1, null);
11062 Object limit = Helpers.getArg(optionalArgs, 2, null);
11063 Object parameters = Helpers.getArg(optionalArgs, 3, new java.util.HashMap<String, Object>() {{}});
11064 if (Helpers.isTrue(Helpers.GetValue(this.has, "fetchOrders")))
11065 {
11066 Object orders = (this.fetchOrders(symbol, since, limit, parameters)).join();
11067 return this.filterBy(orders, "status", "closed");
11068 }
11069 throw new NotSupported((String)Helpers.add(this.id, " fetchClosedOrders() is not supported yet")) ;
11070 });
11071
11072 }
11073
11074 public java.util.concurrent.CompletableFuture<Object> fetchCanceledOrders(Object... optionalArgs)
11075 {

Callers 1

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