For sometime I am using this java API [http://xeiam.com/xchange/][1]
http://xeiam.com/xchange/ for building bitcoin trading robots. Today I got a bit stuck and I wanted to see if somebody had the same issue before.
I call the order books like this:
OrderBook orderBook = exchangeMarket.getExchange().getPollingMarketDataService().
getOrderBook(CurrencyPair.LTC_BTC, new int[] {20});
My problem is that the orderBook object contains 100 asks and 100 bids. I just want 20. Does anybody know why this is not returning the amount I pass in the second parameter? BTW, if I try 150, it also returns 100. I don't know how to modify the amount of returned elements.