import type { Candlestick, GetCandlesticksParams, Interval, TradingMode } from "@0xmonaco/types"; /** * Parameters for the useOHLCV hook */ export interface UseOHLCVParams { /** Trading pair UUID */ tradingPairId: string; /** Trading mode (e.g., "CLOB") */ tradingMode: TradingMode; /** Candlestick interval (1m, 5m, 15m, 1h, 4h, 1d) */ interval: Interval; /** Optional parameters for initial candlestick fetch */ initialFetchParams?: GetCandlesticksParams; } /** * Return type for the useOHLCV hook */ export interface UseOHLCVReturn { /** Array of candlesticks (oldest to newest) */ candlesticks: Candlestick[]; /** Whether the initial candlesticks are being fetched */ loading: boolean; /** Whether currently subscribed to WebSocket updates */ subscribed: boolean; /** Any error that occurred during connection or subscription */ error: Error | null; /** Clear the current error */ clearError: () => void; }