Orderbook can be tricky. Also third party libraries are dangerous.
If all you need is ticker data, but you want separate bid/ask, and do not want 3rd party library, you can augment your results with market average from http://cmplot.com/api.json
It also come with all the fiat pairs. No TOS, no login, no nothing, it lives on XMR donation.