| 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 | { |