use of org.knowm.xchange.bibox.dto.marketdata.BiboxTicker in project XChange by knowm.
the class BiboxMarketDataServiceRaw method getBiboxTicker.
public BiboxTicker getBiboxTicker(CurrencyPair currencyPair) throws IOException {
try {
BiboxResponse<BiboxTicker> response = bibox.mdata(TICKER_CMD, toBiboxPair(currencyPair));
throwErrors(response);
return response.getResult();
} catch (BiboxException e) {
throw new ExchangeException(e.getMessage());
}
}
use of org.knowm.xchange.bibox.dto.marketdata.BiboxTicker in project XChange by knowm.
the class BiboxMarketDataDemo method raw.
private static void raw(BiboxMarketDataServiceRaw marketDataService) throws IOException {
System.out.println("------------RAW-----------");
BiboxTicker tickerResponse = marketDataService.getBiboxTicker(PAIR);
System.out.println(tickerResponse);
List<BiboxMarket> tickersResponse = marketDataService.getAllBiboxMarkets();
System.out.println(tickersResponse);
BiboxOrderBook orderBookResponse = marketDataService.getBiboxOrderBook(PAIR, 10);
System.out.println(orderBookResponse);
}
Aggregations