// Interested in the public polling market data feed (no authentication)
KrakenMarketDataServiceRaw krakenMarketDataService = (KrakenMarketDataServiceRaw) krakenExchange.getPollingMarketDataService();
// Get the latest trade data for BTC_USD
KrakenPublicTrades krakenPublicTrades = krakenMarketDataService.getKrakenTrades(CurrencyPair.BTC_USD);
long last = krakenPublicTrades.getLast();
System.out.println(krakenPublicTrades.getTrades());
System.out.println("Trades size: " + krakenPublicTrades.getTrades().size());
System.out.println("Trades(0): " + krakenPublicTrades.getTrades().get(0).toString());
System.out.println("Last: " + last);
// Poll for any new trades since last id
krakenPublicTrades = krakenMarketDataService.getKrakenTrades(CurrencyPair.LTC_USD, last);
System.out.println(krakenPublicTrades.getTrades());
System.out.println("Trades size: " + krakenPublicTrades.getTrades().size());
}