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