raw(coinsetter);
}
private static void generic(Exchange exchange) throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException {
PollingMarketDataService marketDataService = exchange.getPollingMarketDataService();
Ticker ticker = marketDataService.getTicker(CurrencyPair.BTC_USD);
log.info("Ticker: {}", ticker);
OrderBook orderBook = marketDataService.getOrderBook(CurrencyPair.BTC_USD);
log.info("OrderBook: {}", orderBook);
orderBook = marketDataService.getOrderBook(CurrencyPair.BTC_AUD, "COINSETTER");
log.info("OrderBook(COINSETTER): {}", orderBook);
orderBook = marketDataService.getOrderBook(CurrencyPair.BTC_AUD, "COINSETTER", 5);
log.info("OrderBook(COINSETTER, 5): {}", orderBook);
orderBook = marketDataService.getOrderBook(CurrencyPair.BTC_AUD, null, 5);
log.info("OrderBook(null, 5): {}", orderBook);
orderBook = marketDataService.getOrderBook(CurrencyPair.BTC_AUD, null, null);
log.info("OrderBook(null, null): {}", orderBook);
}