private static void getMarketDepth(Integer limit, String market) throws IOException {
System.out.println(String.format("limit: %d, market: %s", limit, market));
BTCChinaGetMarketDepthResponse response = tradeService.getMarketDepth(limit, market);
System.out.println(response);
for (BTCChinaMarketDepthOrder o : response.getResult().getMarketDepth().getBids()) {
System.out.println(String.format("Bid %s,%s", o.getPrice(), o.getAmount()));
}
for (BTCChinaMarketDepthOrder o : response.getResult().getMarketDepth().getAsks()) {
System.out.println(String.format("Ask %s,%s", o.getPrice(), o.getAmount()));
}
}