public interface BitoProPublicClient
BitoProClientBuilder.
All methods throw ApiException when
server returns error. All parameter related errors will be thrown with
BadArgumentException.
Pair is in terms of base and quote and combined in the form of @{code
${base}_${quote}}.| Modifier and Type | Interface and Description |
|---|---|
static class |
BitoProPublicClient.BitoProPublicPairClient
A pair specific BitoProPublicClient.
|
| Modifier and Type | Method and Description |
|---|---|
OrderBook |
getOrderBook(String pair)
Get order book for specific pair.
|
default BitoProPublicClient.BitoProPublicPairClient |
getPairClient(String pair)
Create convenient methods for specified pair.
|
Ticker |
getTicker(String pair)
Get ticker for specific pair.
|
List<Ticker> |
getTickers()
Get tickers for all pairs.
|
List<Trade> |
getTrades(String pair)
Get recent trades for specific pair.
|
Ticker getTicker(String pair) throws IOException
pair - the pair to get tickerIOException - when connection error occured while called the Rest APIList<Ticker> getTickers() throws IOException
IOException - when connection error occured while called the Rest APIOrderBook getOrderBook(String pair) throws IOException
pair - the pair to get order bookIOException - when connection error occured while called the Rest APIList<Trade> getTrades(String pair) throws IOException
pair - the pair to get tradesIOException - when connection error occured while called the Rest APIdefault BitoProPublicClient.BitoProPublicPairClient getPairClient(String pair)
pair - the pair to act onBitoProPublicPairClient for specified pair