// Interested in the public polling market data feed (no authentication).
PollingMarketDataService marketDataService = exchange.getPollingMarketDataService();
// Get the latest 500 trade data for BTC/CNY.
Trades trades = marketDataService.getTrades(CurrencyPair.BTC_CNY);
System.out.println(trades);
System.out.println("Trades count: " + trades.getTrades().size() + ", LastID: " + trades.getlastID());
// Get 500 trades which tid > 0
trades = marketDataService.getTrades(CurrencyPair.BTC_CNY, 0);
System.out.println(trades);
System.out.println("Trades count: " + trades.getTrades().size() + ", LastID: " + trades.getlastID());
}