All the exchange rates are represented in the schema below
Field
Type
baseCurrency
Currency Code
tagetCurrency
Currency Code
rate
number
modifiedDate
object
The Rate
The rate in equations is not actually the price but is a number with unit baseCurrency/targetCurrency and in all calculations this needs to be taken into factor.
Exchange Service calculations
The exchange service calculations are done with the below variables and formulas.
Rounding Numbers
We round all currencies to 2 decimal point except IRT. For IRT we round to 0 decimal points
All rounding operations are done with strategy roundDown