Constructors
constructor
- new Currency(payload): Currency
-
Parameters
-
payload: {
code: string;
format: CurrencyFormat;
name: string;
}
-
code: string
-
-
name: string
Methods
convertByExchangeRate
- convertByExchangeRate(value, exchangeRate): null | BigNumber
-
Returns null | BigNumber
convertFromRaw
- convertFromRaw(value): BigNumber
-
Returns BigNumber
convertToRaw
- convertToRaw(value): BigNumber
-
Returns BigNumber
A class for storing an API currency.