improve the spot rate fn, remove extend json jar lib.