UNPKG

zumokit

Version:

ZumoKit is a Wallet as a Service SDK

34 lines (33 loc) 1.09 kB
import { Decimal } from 'decimal.js'; import { QuoteJSON, CurrencyCode } from '../interfaces'; /** * Zumo exchange rate quote used in making exchanges. */ export declare class Quote { /** @internal */ json: QuoteJSON; /** Identifier. */ id: string; /** Expiration in seconds at the time of quote creation, e.g. 60. */ ttl: number; /** Epoch timestamp when quote was created. */ createdAt: number; /** Epoch timestamp when quote will expire. */ expiresAt: number; /** Debit currency. */ debitCurrency: CurrencyCode; /** Credit currency. */ creditCurrency: CurrencyCode; /** Value of 1 unit of debit currency in credit currency. */ price: Decimal; /** Fee rate in points of a percentage, e.g. "0.1" representing 0.1% */ feeRate: Decimal; /** Amount to be debited from debit account. */ debitAmount: Decimal; /** Amount that will be paid in fees. */ feeAmount: Decimal; /** Amount to be credited to credit account. */ creditAmount: Decimal; /** @internal */ constructor(json: QuoteJSON); }