(Object... optionalArgs)
| 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 | { |
no test coverage detected