getRates function

Get all rates