make update_rates support historical rates