Exchange Service
All the exchange rates are represented in the schema below
Field
Type
baseCurrency
Currency Code
tagetCurrency
Currency Code
rate
number
modifiedDate
object
{
"_seconds": 1716120001,
"_nanoseconds": 188000000
}
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
Last updated