import { SpotConfig } from "../../shared/catalog-config.js"; 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 { GetMarketTradesInput, MarketTrade } from "./market-data.schemas.js"; //#region src/services/market-data/market-data.d.ts interface SubscribeTradesInput extends BaseSubscribeInput { symbolId: number; } /** * Exposes public spot trades, spot configuration, and live trade streams. */ declare class MarketDataService { #private; constructor(transports: PublicApiTransports, realtime: PolyesterRealtime, scales: SdkScales); /** * Returns recent public trades for one spot market, ordered newest-first by execution timestamp with match id as a tie-breaker. Supports limit, time bounds, side filtering, and match-id pagination. */ listTrades(input: GetMarketTradesInput, options?: PolyesterRequestOptions): Promise<{ trades: MarketTrade[]; nextPageToken: string; }>; /** * Returns the cacheable spot reference-data snapshot, including asset metadata, pair trading constraints, display scales, statuses, and market slippage defaults. * * This is the catalog's own data source, so it must never wait on catalog * readiness (that would deadlock the initial catalog refresh) and carries * no decimal conversion. */ getSpotConfig(options?: PolyesterRequestOptions): Promise; /** * Subscribes to public trade prints on public:spot:market:trades:{symbolId}:proto for the requested symbol and emits parsed market trades. */ subscribeTrades(input: SubscribeTradesInput): () => void; } //#endregion export { MarketDataService }; //# sourceMappingURL=market-data.d.ts.map