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

Method loadAccounts

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

Source from the content-addressed store, hash-verified

8721 }
8722
8723 public java.util.concurrent.CompletableFuture<Object> loadAccounts(Object... optionalArgs)
8724 {
8725
8726 return java.util.concurrent.CompletableFuture.supplyAsync(() -> {
8727
8728 Object reload = Helpers.getArg(optionalArgs, 0, false);
8729 Object parameters = Helpers.getArg(optionalArgs, 1, new java.util.HashMap<String, Object>() {{}});
8730 if (Helpers.isTrue(reload))
8731 {
8732 this.accounts = (this.fetchAccounts(parameters)).join();
8733 } else
8734 {
8735 if (Helpers.isTrue(this.accounts))
8736 {
8737 return this.accounts;
8738 } else
8739 {
8740 this.accounts = (this.fetchAccounts(parameters)).join();
8741 }
8742 }
8743 this.accountsById = ((Object)this.indexBy(this.accounts, "id"));
8744 return this.accounts;
8745 });
8746
8747 }
8748
8749 public Object buildOHLCVC(Object trades, Object... optionalArgs)
8750 {

Callers 15

createDepositAddressMethod · 0.45
findAccountIdMethod · 0.45
fetchBalanceMethod · 0.45
fetchLedgerMethod · 0.45
createOrderMethod · 0.45
editOrderMethod · 0.45
fetchMyTradesMethod · 0.45
cancelAllOrdersMethod · 0.45
cancelOrderMethod · 0.45
fetchOpenOrdersMethod · 0.45
fetchOrdersMethod · 0.45
fetchOrderMethod · 0.45

Calls 4

getArgMethod · 0.95
isTrueMethod · 0.95
fetchAccountsMethod · 0.95
indexByMethod · 0.95

Tested by

no test coverage detected