}
private static void raw(Exchange exchange) throws IOException {
// Interested in the public polling market data feed (no authentication)
BitcoiniumMarketDataServiceRaw bitcoiniumSpecificMarketDataService = (BitcoiniumMarketDataServiceRaw) exchange.getPollingMarketDataService();
// Get the latest ticker data showing BTC to USD
BitcoiniumTicker bitcoiniumTicker = bitcoiniumSpecificMarketDataService.getBitcoiniumTicker(Currencies.BTC, "BITSTAMP_USD");
System.out.println("Last: " + bitcoiniumTicker.getLast());
System.out.println("Bid: " + bitcoiniumTicker.getBid());
System.out.println("Ask: " + bitcoiniumTicker.getAsk());
System.out.println("Volume: " + bitcoiniumTicker.getVolume());
// Get the latest order book data for BTC/USD - MtGox
BitcoiniumOrderbook bitcoiniumOrderbook = bitcoiniumSpecificMarketDataService.getBitcoiniumOrderbook(Currencies.BTC, "BITSTAMP_USD", "TEN_PERCENT");
System.out.println("Order book: " + bitcoiniumOrderbook);
}