(Object orderbook, Object symbol, Object... optionalArgs)
| 8101 | } |
| 8102 | |
| 8103 | public Object parseOrderBook(Object orderbook, Object symbol, Object... optionalArgs) |
| 8104 | { |
| 8105 | Object timestamp = Helpers.getArg(optionalArgs, 0, null); |
| 8106 | Object bidsKey = Helpers.getArg(optionalArgs, 1, "bids"); |
| 8107 | Object asksKey = Helpers.getArg(optionalArgs, 2, "asks"); |
| 8108 | Object priceKey = Helpers.getArg(optionalArgs, 3, 0); |
| 8109 | Object amountKey = Helpers.getArg(optionalArgs, 4, 1); |
| 8110 | Object countOrIdKey = Helpers.getArg(optionalArgs, 5, 2); |
| 8111 | Object bids = this.parseOrderBookBidsAsks(this.safeValue(orderbook, bidsKey, new java.util.ArrayList<Object>(java.util.Arrays.asList())), priceKey, amountKey, countOrIdKey); |
| 8112 | Object asks = this.parseOrderBookBidsAsks(this.safeValue(orderbook, asksKey, new java.util.ArrayList<Object>(java.util.Arrays.asList())), priceKey, amountKey, countOrIdKey); |
| 8113 | return new java.util.HashMap<String, Object>() {{ |
| 8114 | put( "symbol", symbol ); |
| 8115 | put( "bids", Exchange.this.sortBy(bids, 0, true) ); |
| 8116 | put( "asks", Exchange.this.sortBy(asks, 0) ); |
| 8117 | put( "timestamp", timestamp ); |
| 8118 | put( "datetime", Exchange.this.iso8601(timestamp) ); |
| 8119 | put( "nonce", null ); |
| 8120 | }}; |
| 8121 | } |
| 8122 | |
| 8123 | public Object parseOHLCVs(Object ohlcvs, Object... optionalArgs) |
| 8124 | { |
nothing calls this directly
no test coverage detected