Add get_rates method