lib: sleep awhile after query failed

In function get_price(), move the sleep() function after query failed.

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