lib: add get_price() function

use get_price() to wrap get_{sell,buy}_price()
and add some checks to make sure the return data is correct

Signed-off-by: AceLan Kao <acelan@acelan.idv.tw>