MCPcopy
hub / github.com/ccxt/ccxt / fetchMarginMode

Method fetchMarginMode

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

Source from the content-addressed store, hash-verified

5016 }
5017
5018 public java.util.concurrent.CompletableFuture<Object> fetchMarginMode(Object symbol, Object... optionalArgs)
5019 {
5020
5021 return java.util.concurrent.CompletableFuture.supplyAsync(() -> {
5022
5023 Object parameters = Helpers.getArg(optionalArgs, 0, new java.util.HashMap<String, Object>() {{}});
5024 if (Helpers.isTrue(Helpers.GetValue(this.has, "fetchMarginModes")))
5025 {
5026 Object marginModes = (this.fetchMarginModes(new java.util.ArrayList<Object>(java.util.Arrays.asList(symbol)), parameters)).join();
5027 return this.safeDict(marginModes, symbol);
5028 } else
5029 {
5030 throw new NotSupported((String)Helpers.add(this.id, " fetchMarginMode() is not supported yet")) ;
5031 }
5032 });
5033
5034 }
5035
5036 public java.util.concurrent.CompletableFuture<Object> fetchMarginModes(Object... optionalArgs)
5037 {

Callers

nothing calls this directly

Calls 6

getArgMethod · 0.95
isTrueMethod · 0.95
GetValueMethod · 0.95
fetchMarginModesMethod · 0.95
safeDictMethod · 0.95
addMethod · 0.95

Tested by

no test coverage detected