(Object symbol2, Object... optionalArgs)
| 9673 | } |
| 9674 | |
| 9675 | public java.util.concurrent.CompletableFuture<Object> fetchMarkPrice(Object symbol2, Object... optionalArgs) |
| 9676 | { |
| 9677 | final Object symbol3 = symbol2; |
| 9678 | return java.util.concurrent.CompletableFuture.supplyAsync(() -> { |
| 9679 | Object symbol = symbol3; |
| 9680 | Object parameters = Helpers.getArg(optionalArgs, 0, new java.util.HashMap<String, Object>() {{}}); |
| 9681 | if (Helpers.isTrue(Helpers.GetValue(this.has, "fetchMarkPrices"))) |
| 9682 | { |
| 9683 | (this.loadMarkets()).join(); |
| 9684 | Object market = this.market(symbol); |
| 9685 | symbol = Helpers.GetValue(market, "symbol"); |
| 9686 | Object tickers = (this.fetchMarkPrices(new java.util.ArrayList<Object>(java.util.Arrays.asList(symbol)), parameters)).join(); |
| 9687 | Object ticker = this.safeDict(tickers, symbol); |
| 9688 | if (Helpers.isTrue(Helpers.isEqual(ticker, null))) |
| 9689 | { |
| 9690 | throw new NullResponse((String)Helpers.add(Helpers.add(this.id, " fetchMarkPrices() could not find a ticker for "), symbol)) ; |
| 9691 | } else |
| 9692 | { |
| 9693 | return ticker; |
| 9694 | } |
| 9695 | } else |
| 9696 | { |
| 9697 | throw new NotSupported((String)Helpers.add(this.id, " fetchMarkPrices() is not supported yet")) ; |
| 9698 | } |
| 9699 | }); |
| 9700 | |
| 9701 | } |
| 9702 | |
| 9703 | public java.util.concurrent.CompletableFuture<Object> fetchTickerWs(Object symbol2, Object... optionalArgs) |
| 9704 | { |
nothing calls this directly
no test coverage detected