import type { OhlcvInterval, OhlcvResponse } from '@lifi/perps-types'; import type { SDKRequestOptions } from '../types/config.js'; import type { PerpsSDKClient } from '../types/provider.js'; /** * Parameters for {@link getOhlcv}. * * @public */ export interface GetOhlcvParams { provider: string; /** Opaque provider `Market.id` (not `displaySymbol`). */ marketId: string; interval: OhlcvInterval; /** Unix timestamp in milliseconds */ startTime?: number; /** Unix timestamp in milliseconds */ endTime?: number; limit?: number; } /** * Get OHLCV (candlestick) data for a market. * * @throws {PerpsError} On backend, network, or parsing errors. * @example * ```ts * const { candles } = await getOhlcv(client, { * provider: 'hyperliquid', * marketId: 'BTC', * interval: '1h', * limit: 100, * }) * ``` * @public */ export declare function getOhlcv(client: PerpsSDKClient, params: GetOhlcvParams, options?: SDKRequestOptions): Promise; //# sourceMappingURL=getOhlcv.d.ts.map