UNPKG

soroban-hooks

Version:

Soroban smart contract watcher and transaction helper

42 lines (41 loc) 1.2 kB
export default AssetsPriceHistory; export type AssetPriceHistoryParams = { /** * - Asset code (e.g., XLM) */ code: string; /** * - Issuer address (required for non-XLM assets, forbidden for XLM) */ issuer?: string | undefined; /** * - Start timestamp in ms */ startTimestamp: number; /** * - End timestamp in ms */ endTimestamp: number; /** * - Resolution (default "1m") */ offset?: string | undefined; }; /** * @typedef {Object} AssetPriceHistoryParams * @property {string} code - Asset code (e.g., XLM) * @property {string} [issuer] - Issuer address (required for non-XLM assets, forbidden for XLM) * @property {number} startTimestamp - Start timestamp in ms * @property {number} endTimestamp - End timestamp in ms * @property {string} [offset] - Resolution (default "1m") */ declare class AssetsPriceHistory { constructor(apiKey: any); apiKey: any; /** * Get asset price history. * @param {AssetPriceHistoryParams} params * @returns {Promise<any>} */ getPriceHistory({ code, issuer, startTimestamp, endTimestamp, offset, }: AssetPriceHistoryParams): Promise<any>; }