Constructors
constructor
- new Amount(payload, client?): Amount
-
Parameters
-
payload: APIMonetary | APICoin
-
Properties
currencyCode
currencyCode: string
valueRaw
valueRaw: BigNumber
Accessors
emoji
- get emoji(): null | string
-
Returns null | string
usdValue
- get usdValue(): null | BigNumber
-
Returns null | BigNumber
value
- get value(): null | BigNumber
-
Returns null | BigNumber
Methods
add
- add(value): boolean
-
Returns boolean
addRaw
- addRaw(value): void
-
Returns void
subtract
- subtract(value): boolean
-
Returns boolean
subtractRaw
- subtractRaw(value): void
-
Returns void
toString
- toString(includeUsd?): null | string
-
Parameters
-
includeUsd: boolean = true
Returns null | string
A class for storing an API amount. This can be used for either fiats or cryptocurrencies.