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 { Candle, CandleColumnar, CandleColumnarInt, CandleInt, GetCandlesColumnsInput, GetCandlesInput, Timeframe } from "./candles.schemas.js"; //#region src/services/candles/candles.d.ts interface SubscribeCandlesInput extends BaseSubscribeInput { symbolId: number; timeframe: Timeframe; } interface SubscribeCandlesIntsInput extends BaseSubscribeInput { symbolId: number; timeframe: Timeframe; } /** * Reads and streams public spot OHLCV candle data in row and columnar formats. */ declare class CandlesService { #private; constructor(transports: PublicApiTransports, realtime: PolyesterRealtime, scales: SdkScales); /** * Returns OHLCV candles for a symbol/timeframe request, mapped into row objects with symbol id and timeframe. The proto response is newest-first and may include incomplete/reference data depending on input flags. */ list(input: GetCandlesInput, options?: PolyesterRequestOptions): Promise; /** * Returns candle data in chart-friendly column arrays ordered oldest-first by bucket start time. This preserves decimal-string SDK formatting from the columnar schema. */ listColumnar(input: GetCandlesColumnsInput, options?: PolyesterRequestOptions): Promise; /** * Returns the same columnar candle series keyed by numeric bucket-start seconds (`tsSec`) instead of `time`. */ listColumnarInts(input: GetCandlesColumnsInput, options?: PolyesterRequestOptions): Promise; /** * Subscribes to live candle updates on public:spot:market:candles:{timeframe}:{symbolId}:proto and emits row-form candles. */ subscribe(input: SubscribeCandlesInput): () => void; /** * Subscribes to the same live candle channel as subscribe and emits row candles parsed through the row-int schema. */ subscribeInts(input: SubscribeCandlesIntsInput): () => void; } //#endregion export { CandlesService }; //# sourceMappingURL=candles.d.ts.map