Refactor get_ticker API for better performance
Refactor get_ticker API for better performance

Also,
* avoids a pagination issue exists in the original implementation
* fixed a price flipping bug in get_trade_history API

bitshares/bitshares-2,bitshares/bitshares-2,bitshares/bitshares-2,bitshares/bitshares-2