get_rate function

get an exchange rate series