add exchange rate functions

Add Exchange rate functions,

:bug: fixed problem of exchange rate when are the same currency unit.