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

Method fetchOpenInterest

java/lib/src/main/java/io/github/ccxt/Exchange.java:5563–5579  ·  view source on GitHub ↗
(Object symbol, Object... optionalArgs)

Source from the content-addressed store, hash-verified

5561 }
5562
5563 public java.util.concurrent.CompletableFuture<Object> fetchOpenInterest(Object symbol, Object... optionalArgs)
5564 {
5565
5566 return java.util.concurrent.CompletableFuture.supplyAsync(() -> {
5567
5568 Object parameters = Helpers.getArg(optionalArgs, 0, new java.util.HashMap<String, Object>() {{}});
5569 if (Helpers.isTrue(Helpers.GetValue(this.has, "fetchOpenInterests")))
5570 {
5571 Object openInterests = (this.fetchOpenInterests(new java.util.ArrayList<Object>(java.util.Arrays.asList(symbol)), parameters)).join();
5572 return this.safeDict(openInterests, symbol);
5573 } else
5574 {
5575 throw new NotSupported((String)Helpers.add(this.id, " fetchOpenInterest() is not supported yet")) ;
5576 }
5577 });
5578
5579 }
5580
5581 public java.util.concurrent.CompletableFuture<Object> fetchOpenInterests(Object... optionalArgs)
5582 {

Callers

nothing calls this directly

Calls 6

getArgMethod · 0.95
isTrueMethod · 0.95
GetValueMethod · 0.95
fetchOpenInterestsMethod · 0.95
safeDictMethod · 0.95
addMethod · 0.95

Tested by

no test coverage detected