import { PublicApiTransports } from "../../shared/transports.js"; import { PolyesterRequestOptions } from "../../shared/request-options.js"; import { PolyesterRealtime } from "../../realtime/types.js"; import { BaseSubscribeInput } from "../../shared/types.js"; import { SdkScales } from "../../shared/decimal-surface.js"; import { CurrencyConversionConfig, CurrencyConversionRates, ListMarketOverviewInput, MarketOverview, SparklineIntervalName, SpotVolumeHistoryInput, SpotVolumeHistoryResponse } from "./market-overview.schemas.js"; //#region src/services/market-overview/market-overview.d.ts interface SubscribeMarketOverviewInput extends BaseSubscribeInput { symbolIds?: number[]; includeSparklines?: boolean; sparklineIntervals?: SparklineIntervalName[]; } /** * Provides ticker-style per-market stats and a live merged overview stream. */ declare class MarketOverviewService { #private; constructor(transports: PublicApiTransports, realtime: PolyesterRealtime, scales: SdkScales); /** * Returns market overview rows with last and index prices, 24h stats, top-of-book values, listing timestamp, and optional sparklines. Supports symbol ID filtering, sorting, pagination, and sparkline interval selection. */ list(input?: ListMarketOverviewInput, options?: PolyesterRequestOptions): Promise<{ markets: MarketOverview[]; nextPageToken: string; }>; /** * Returns 97 aligned trailing-24h USD volume samples at 15-minute intervals. * Empty symbolIds selects all pairs. Samples overlap and must not be summed * as period volume. Unavailable valuations reject the request. */ getSpotVolumeHistory(input?: SpotVolumeHistoryInput, options?: PolyesterRequestOptions): Promise; /** Returns cacheable display metadata, even before rates have been observed. */ getCurrencyConversionConfig(options?: PolyesterRequestOptions): Promise; /** * Returns exact decimal rates with observation times and backend staleness flags. * Fiat is units per USD; stablecoins are USD per unit. Unobserved rates remain absent. * Rejects as unavailable before any observation exists. */ getCurrencyConversionRates(options?: PolyesterRequestOptions): Promise; /** * Subscribes to public:spot:market_overview:updates:proto, fetches an initial snapshot, buffers updates until ready, and emits the merged set of latest market rows. On reconnect it refetches the snapshot before resuming updates. */ subscribe(input: SubscribeMarketOverviewInput): () => void; } //#endregion export { MarketOverviewService }; //# sourceMappingURL=market-overview.d.ts.map