zumokit
Version:
ZumoKit is a Wallet as a Service SDK
23 lines (22 loc) • 776 B
TypeScript
import { Decimal } from 'decimal.js';
import { ExchangeRateJSON, CurrencyCode } from '../interfaces';
/**
* Record containing Zumo exchange rates for information purposes only.
* Can be used to display amounts in local currency to the user.
*/
export declare class ExchangeRate {
/** @internal */
json: ExchangeRateJSON;
/** Identifier. */
id: string;
/** Currency from which exchange is being made. */
fromCurrency: CurrencyCode;
/** Currency to which exchange is being made. */
toCurrency: CurrencyCode;
/** Value of 1 unit of source currency in target currency. */
value: Decimal;
/** Epoch timestamp when the exchange rate was issued. */
timestamp: number;
/** @internal */
constructor(json: ExchangeRateJSON);
}