import { APIResource } from "../../core/resource.mjs"; import { APIPromise } from "../../core/api-promise.mjs"; import { RequestOptions } from "../../internal/request-options.mjs"; export declare class History extends APIResource { /** * To query the historical data (price, market cap, 24hrs volume, etc.) at a given * date for a coin based on a particular coin ID */ get(id: string, query: HistoryGetParams, options?: RequestOptions): APIPromise; } export interface HistoryGetResponse { /** * Coin ID */ id: string; /** * Coin image URLs */ image: HistoryGetResponse.Image; /** * Market data at the given date */ market_data: HistoryGetResponse.MarketData; /** * Coin name */ name: string; /** * Public interest statistics */ public_interest_stats: HistoryGetResponse.PublicInterestStats; /** * Coin symbol */ symbol: string; /** * Localized coin names keyed by locale code */ localization?: { [key: string]: string; }; } export declare namespace HistoryGetResponse { /** * Coin image URLs */ interface Image { /** * Small image URL */ small?: string; /** * Thumbnail image URL */ thumb?: string; } /** * Market data at the given date */ interface MarketData { /** * Current price keyed by currency */ current_price?: { [key: string]: number; }; /** * Market capitalization keyed by currency */ market_cap?: { [key: string]: number; }; /** * Total trading volume keyed by currency */ total_volume?: { [key: string]: number; }; } /** * Public interest statistics */ interface PublicInterestStats { /** * Alexa rank */ alexa_rank?: number | null; /** * Bing search matches */ bing_matches?: number | null; } } export interface HistoryGetParams { /** * The date of data snapshot. Format: `YYYY-MM-DD` */ date: string; /** * Include all the localized languages in response. Default: true */ localization?: boolean; } export declare namespace History { export { type HistoryGetResponse as HistoryGetResponse, type HistoryGetParams as HistoryGetParams }; } //# sourceMappingURL=history.d.mts.map