@0xarchive/sdk 0.8.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -249,10 +249,17 @@ interface FundingRate {
249
249
  /** Premium component of funding rate */
250
250
  premium?: string;
251
251
  }
252
+ /**
253
+ * Aggregation interval for OI and funding history.
254
+ * When omitted, raw ~1 min data is returned.
255
+ */
256
+ type OiFundingInterval = '5m' | '15m' | '30m' | '1h' | '4h' | '1d';
252
257
  /**
253
258
  * Parameters for getting funding rate history
254
259
  */
255
260
  interface FundingHistoryParams extends CursorPaginationParams {
261
+ /** Aggregation interval. When omitted, raw ~1 min data is returned. */
262
+ interval?: OiFundingInterval;
256
263
  }
257
264
  /**
258
265
  * Open interest snapshot with market context
@@ -283,6 +290,8 @@ interface OpenInterest {
283
290
  * Parameters for getting open interest history
284
291
  */
285
292
  interface OpenInterestHistoryParams extends CursorPaginationParams {
293
+ /** Aggregation interval. When omitted, raw ~1 min data is returned. */
294
+ interval?: OiFundingInterval;
286
295
  }
287
296
  /**
288
297
  * Liquidation event record
@@ -355,8 +364,108 @@ interface CandleHistoryParams extends CursorPaginationParams {
355
364
  /** Candle interval (default: 1h) */
356
365
  interval?: CandleInterval;
357
366
  }
358
- /** WebSocket channel types. Note: ticker/all_tickers are real-time only. Liquidations is historical only (May 2025+). */
359
- type WsChannel = 'orderbook' | 'trades' | 'candles' | 'liquidations' | 'ticker' | 'all_tickers' | 'lighter_orderbook' | 'lighter_trades' | 'lighter_candles' | 'hip3_orderbook' | 'hip3_trades' | 'hip3_candles';
367
+ /** Pre-aggregated liquidation volume bucket */
368
+ interface LiquidationVolume {
369
+ /** Trading pair symbol */
370
+ coin: string;
371
+ /** Bucket timestamp (UTC) */
372
+ timestamp: string;
373
+ /** Total liquidation volume in USD (price * size) */
374
+ totalUsd: number;
375
+ /** Long liquidations volume */
376
+ longUsd: number;
377
+ /** Short liquidations volume */
378
+ shortUsd: number;
379
+ /** Total liquidation count */
380
+ count: number;
381
+ /** Long liquidation count */
382
+ longCount: number;
383
+ /** Short liquidation count */
384
+ shortCount: number;
385
+ }
386
+ /** Parameters for getting aggregated liquidation volume */
387
+ interface LiquidationVolumeParams extends CursorPaginationParams {
388
+ /** Aggregation interval (default: 1h). Valid: 5m, 15m, 30m, 1h, 4h, 1d */
389
+ interval?: OiFundingInterval;
390
+ }
391
+ /** Freshness data for a single data type */
392
+ interface DataTypeFreshnessInfo {
393
+ /** Last update timestamp */
394
+ lastUpdated?: string;
395
+ /** Lag in milliseconds */
396
+ lagMs?: number;
397
+ }
398
+ /** Per-coin freshness across all data types */
399
+ interface CoinFreshness {
400
+ /** Coin symbol */
401
+ coin: string;
402
+ /** Exchange name */
403
+ exchange: string;
404
+ /** When this measurement was taken */
405
+ measuredAt: string;
406
+ /** Orderbook freshness */
407
+ orderbook: DataTypeFreshnessInfo;
408
+ /** Trades freshness */
409
+ trades: DataTypeFreshnessInfo;
410
+ /** Funding freshness */
411
+ funding: DataTypeFreshnessInfo;
412
+ /** Open interest freshness */
413
+ openInterest: DataTypeFreshnessInfo;
414
+ /** Liquidations freshness (Hyperliquid only) */
415
+ liquidations?: DataTypeFreshnessInfo;
416
+ }
417
+ /** Combined market summary for a coin */
418
+ interface CoinSummary {
419
+ /** Trading pair symbol */
420
+ coin: string;
421
+ /** Timestamp (UTC) */
422
+ timestamp: string;
423
+ /** Latest mark price */
424
+ markPrice?: string;
425
+ /** Latest oracle price */
426
+ oraclePrice?: string;
427
+ /** Latest mid price */
428
+ midPrice?: string;
429
+ /** Current funding rate */
430
+ fundingRate?: string;
431
+ /** Funding premium */
432
+ premium?: string;
433
+ /** Current open interest */
434
+ openInterest?: string;
435
+ /** 24h notional trading volume */
436
+ volume24h?: string;
437
+ /** 24h total liquidation volume in USD */
438
+ liquidationVolume24h?: number;
439
+ /** 24h long liquidation volume in USD */
440
+ longLiquidationVolume24h?: number;
441
+ /** 24h short liquidation volume in USD */
442
+ shortLiquidationVolume24h?: number;
443
+ }
444
+ /** Price snapshot from OI data */
445
+ interface PriceSnapshot {
446
+ /** Timestamp (UTC) */
447
+ timestamp: string;
448
+ /** Mark price */
449
+ markPrice?: string;
450
+ /** Oracle price */
451
+ oraclePrice?: string;
452
+ /** Mid price */
453
+ midPrice?: string;
454
+ }
455
+ /** Parameters for price history */
456
+ interface PriceHistoryParams extends CursorPaginationParams {
457
+ /** Aggregation interval. When omitted, raw ~1 min data is returned. */
458
+ interval?: OiFundingInterval;
459
+ }
460
+ /**
461
+ * WebSocket channel types.
462
+ *
463
+ * - ticker/all_tickers: real-time only
464
+ * - liquidations: historical only (May 2025+)
465
+ * - open_interest, funding, lighter_open_interest, lighter_funding,
466
+ * hip3_open_interest, hip3_funding: historical only (replay/stream)
467
+ */
468
+ type WsChannel = 'orderbook' | 'trades' | 'candles' | 'liquidations' | 'ticker' | 'all_tickers' | 'open_interest' | 'funding' | 'lighter_orderbook' | 'lighter_trades' | 'lighter_candles' | 'lighter_open_interest' | 'lighter_funding' | 'hip3_orderbook' | 'hip3_trades' | 'hip3_candles' | 'hip3_open_interest' | 'hip3_funding';
360
469
  /** Subscribe message from client */
361
470
  interface WsSubscribe {
362
471
  op: 'subscribe';
@@ -376,7 +485,10 @@ interface WsPing {
376
485
  /** Replay message from client - replays historical data with timing preserved */
377
486
  interface WsReplay {
378
487
  op: 'replay';
379
- channel: WsChannel;
488
+ /** Single channel for replay. Mutually exclusive with `channels`. */
489
+ channel?: WsChannel;
490
+ /** Multiple channels for multi-channel replay. Mutually exclusive with `channel`. */
491
+ channels?: WsChannel[];
380
492
  coin?: string;
381
493
  /** Start timestamp (Unix ms) */
382
494
  start: number;
@@ -406,7 +518,10 @@ interface WsReplayStop {
406
518
  /** Stream message from client - bulk download historical data */
407
519
  interface WsStream {
408
520
  op: 'stream';
409
- channel: WsChannel;
521
+ /** Single channel for streaming. Mutually exclusive with `channels`. */
522
+ channel?: WsChannel;
523
+ /** Multiple channels for multi-channel streaming. Mutually exclusive with `channel`. */
524
+ channels?: WsChannel[];
410
525
  coin?: string;
411
526
  /** Start timestamp (Unix ms) */
412
527
  start: number;
@@ -494,6 +609,20 @@ interface WsHistoricalData<T = unknown> {
494
609
  timestamp: number;
495
610
  data: T;
496
611
  }
612
+ /**
613
+ * Replay snapshot providing initial state for a channel before the timeline starts.
614
+ * Sent in multi-channel replay/stream mode to provide the most recent data point
615
+ * for each channel at the replay start time. This allows clients to initialize
616
+ * their state (e.g., current orderbook, latest funding rate) before timeline
617
+ * data begins arriving via `historical_data` messages.
618
+ */
619
+ interface WsReplaySnapshot<T = unknown> {
620
+ type: 'replay_snapshot';
621
+ channel: WsChannel;
622
+ coin: string;
623
+ timestamp: number;
624
+ data: T;
625
+ }
497
626
  /** Orderbook delta for tick-level data */
498
627
  interface OrderbookDelta {
499
628
  /** Timestamp in milliseconds */
@@ -573,7 +702,7 @@ interface WsGapDetected {
573
702
  duration_minutes: number;
574
703
  }
575
704
  /** Server message union type */
576
- type WsServerMessage = WsSubscribed | WsUnsubscribed | WsPong | WsError | WsData | WsReplayStarted | WsReplayPaused | WsReplayResumed | WsReplayCompleted | WsReplayStopped | WsHistoricalData | WsHistoricalTickData | WsStreamStarted | WsStreamProgress | WsHistoricalBatch | WsStreamCompleted | WsStreamStopped | WsGapDetected;
705
+ type WsServerMessage = WsSubscribed | WsUnsubscribed | WsPong | WsError | WsData | WsReplayStarted | WsReplayPaused | WsReplayResumed | WsReplayCompleted | WsReplayStopped | WsReplaySnapshot | WsHistoricalData | WsHistoricalTickData | WsStreamStarted | WsStreamProgress | WsHistoricalBatch | WsStreamCompleted | WsStreamStopped | WsGapDetected;
577
706
  /**
578
707
  * WebSocket connection options.
579
708
  *
@@ -1662,6 +1791,17 @@ declare class LiquidationsResource {
1662
1791
  * @returns CursorResponse with liquidation records and nextCursor for pagination
1663
1792
  */
1664
1793
  byUser(userAddress: string, params: LiquidationsByUserParams): Promise<CursorResponse<Liquidation[]>>;
1794
+ /**
1795
+ * Get aggregated liquidation volume in time-bucketed intervals
1796
+ *
1797
+ * Returns pre-aggregated data with total/long/short USD volumes per bucket,
1798
+ * reducing data transfer by 100-1000x compared to individual liquidation records.
1799
+ *
1800
+ * @param coin - The coin symbol (e.g., 'BTC', 'ETH')
1801
+ * @param params - Time range, cursor, and interval parameters
1802
+ * @returns CursorResponse with liquidation volume buckets
1803
+ */
1804
+ volume(coin: string, params: LiquidationVolumeParams): Promise<CursorResponse<LiquidationVolume[]>>;
1665
1805
  }
1666
1806
 
1667
1807
  /**
@@ -1882,7 +2022,30 @@ declare class HyperliquidClient {
1882
2022
  * HIP-3 builder-deployed perpetuals (February 2026+)
1883
2023
  */
1884
2024
  readonly hip3: Hip3Client;
2025
+ private http;
1885
2026
  constructor(http: HttpClient);
2027
+ /**
2028
+ * Get per-coin data freshness across all data types
2029
+ *
2030
+ * @param coin - The coin symbol (e.g., 'BTC', 'ETH')
2031
+ * @returns Per-coin freshness with last_updated and lag_ms for each data type
2032
+ */
2033
+ freshness(coin: string): Promise<CoinFreshness>;
2034
+ /**
2035
+ * Get combined market summary (price, funding, OI, volume, liquidations) in one call
2036
+ *
2037
+ * @param coin - The coin symbol (e.g., 'BTC', 'ETH')
2038
+ * @returns Combined market summary
2039
+ */
2040
+ summary(coin: string): Promise<CoinSummary>;
2041
+ /**
2042
+ * Get mark/oracle/mid price history (projected from OI data)
2043
+ *
2044
+ * @param coin - The coin symbol (e.g., 'BTC', 'ETH')
2045
+ * @param params - Time range, cursor, and interval parameters
2046
+ * @returns CursorResponse with price snapshots
2047
+ */
2048
+ priceHistory(coin: string, params: PriceHistoryParams): Promise<CursorResponse<PriceSnapshot[]>>;
1886
2049
  }
1887
2050
  /**
1888
2051
  * HIP-3 builder-deployed perpetuals client
@@ -1977,7 +2140,7 @@ declare class LighterClient {
1977
2140
  * ```typescript
1978
2141
  * import { OxArchive } from '@0xarchive/sdk';
1979
2142
  *
1980
- * const client = new OxArchive({ apiKey: 'ox_your_api_key' });
2143
+ * const client = new OxArchive({ apiKey: '0xa_your_api_key' });
1981
2144
  *
1982
2145
  * // Hyperliquid data
1983
2146
  * const hlOrderbook = await client.hyperliquid.orderbook.get('BTC');
@@ -2111,6 +2274,7 @@ declare class OxArchiveWs {
2111
2274
  private batchHandlers;
2112
2275
  private replayStartHandlers;
2113
2276
  private replayCompleteHandlers;
2277
+ private replaySnapshotHandlers;
2114
2278
  private streamStartHandlers;
2115
2279
  private streamProgressHandlers;
2116
2280
  private streamCompleteHandlers;
@@ -2196,6 +2360,36 @@ declare class OxArchiveWs {
2196
2360
  /** Candle interval for candles channel (1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w) */
2197
2361
  interval?: string;
2198
2362
  }): void;
2363
+ /**
2364
+ * Start a multi-channel historical replay with timing preserved.
2365
+ * Data from all channels is interleaved chronologically. Before the timeline
2366
+ * begins, `replay_snapshot` messages provide initial state for each channel.
2367
+ *
2368
+ * @param channels - Array of data channels to replay simultaneously
2369
+ * @param coin - Trading pair (e.g., 'BTC', 'ETH')
2370
+ * @param options - Replay options
2371
+ *
2372
+ * @example
2373
+ * ```typescript
2374
+ * ws.onReplaySnapshot((channel, coin, timestamp, data) => {
2375
+ * console.log(`Initial ${channel} state at ${new Date(timestamp).toISOString()}`);
2376
+ * });
2377
+ * ws.onHistoricalData((coin, timestamp, data) => {
2378
+ * // Interleaved data from all channels
2379
+ * });
2380
+ * ws.multiReplay(['orderbook', 'trades', 'funding'], 'BTC', {
2381
+ * start: Date.now() - 86400000,
2382
+ * speed: 10
2383
+ * });
2384
+ * ```
2385
+ */
2386
+ multiReplay(channels: WsChannel[], coin: string, options: {
2387
+ start: number;
2388
+ end?: number;
2389
+ speed?: number;
2390
+ granularity?: string;
2391
+ interval?: string;
2392
+ }): void;
2199
2393
  /**
2200
2394
  * Pause the current replay
2201
2395
  */
@@ -2237,6 +2431,38 @@ declare class OxArchiveWs {
2237
2431
  /** Candle interval for candles channel (1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w) */
2238
2432
  interval?: string;
2239
2433
  }): void;
2434
+ /**
2435
+ * Start a multi-channel bulk stream for fast data download.
2436
+ * Data from all channels arrives in batches without timing delays.
2437
+ * Before batches begin, `replay_snapshot` messages provide initial state
2438
+ * for each channel.
2439
+ *
2440
+ * @param channels - Array of data channels to stream simultaneously
2441
+ * @param coin - Trading pair (e.g., 'BTC', 'ETH')
2442
+ * @param options - Stream options
2443
+ *
2444
+ * @example
2445
+ * ```typescript
2446
+ * ws.onReplaySnapshot((channel, coin, timestamp, data) => {
2447
+ * console.log(`Initial ${channel} state`);
2448
+ * });
2449
+ * ws.onBatch((coin, records) => {
2450
+ * // Batches contain data from all requested channels
2451
+ * });
2452
+ * ws.multiStream(['orderbook', 'trades', 'open_interest'], 'BTC', {
2453
+ * start: Date.now() - 3600000,
2454
+ * end: Date.now(),
2455
+ * batchSize: 1000
2456
+ * });
2457
+ * ```
2458
+ */
2459
+ multiStream(channels: WsChannel[], coin: string, options: {
2460
+ start: number;
2461
+ end: number;
2462
+ batchSize?: number;
2463
+ granularity?: string;
2464
+ interval?: string;
2465
+ }): void;
2240
2466
  /**
2241
2467
  * Stop the current bulk stream
2242
2468
  */
@@ -2266,6 +2492,27 @@ declare class OxArchiveWs {
2266
2492
  * Handle replay completed event
2267
2493
  */
2268
2494
  onReplayComplete(handler: (channel: WsChannel, coin: string, snapshotsSent: number) => void): void;
2495
+ /**
2496
+ * Handle replay snapshot events (multi-channel mode).
2497
+ * Called with the initial state for each channel before the replay/stream
2498
+ * timeline begins. Use this to initialize local state (e.g., set the current
2499
+ * orderbook or latest funding rate) before `historical_data` messages start
2500
+ * arriving.
2501
+ *
2502
+ * @param handler - Callback receiving channel, coin, timestamp (ms), and data payload
2503
+ *
2504
+ * @example
2505
+ * ```typescript
2506
+ * ws.onReplaySnapshot((channel, coin, timestamp, data) => {
2507
+ * if (channel === 'orderbook') {
2508
+ * currentOrderbook = data;
2509
+ * } else if (channel === 'funding') {
2510
+ * currentFundingRate = data;
2511
+ * }
2512
+ * });
2513
+ * ```
2514
+ */
2515
+ onReplaySnapshot<T = unknown>(handler: (channel: WsChannel, coin: string, timestamp: number, data: T) => void): void;
2269
2516
  /**
2270
2517
  * Handle stream started event
2271
2518
  */
@@ -2683,32 +2930,32 @@ declare const CandleSchema: z.ZodObject<{
2683
2930
  quoteVolume?: number | undefined;
2684
2931
  tradeCount?: number | undefined;
2685
2932
  }>;
2686
- declare const WsChannelSchema: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers"]>;
2933
+ declare const WsChannelSchema: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
2687
2934
  declare const WsConnectionStateSchema: z.ZodEnum<["connecting", "connected", "disconnected", "reconnecting"]>;
2688
2935
  declare const WsSubscribedSchema: z.ZodObject<{
2689
2936
  type: z.ZodLiteral<"subscribed">;
2690
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers"]>;
2937
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
2691
2938
  coin: z.ZodOptional<z.ZodString>;
2692
2939
  }, "strip", z.ZodTypeAny, {
2693
2940
  type: "subscribed";
2694
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
2941
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2695
2942
  coin?: string | undefined;
2696
2943
  }, {
2697
2944
  type: "subscribed";
2698
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
2945
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2699
2946
  coin?: string | undefined;
2700
2947
  }>;
2701
2948
  declare const WsUnsubscribedSchema: z.ZodObject<{
2702
2949
  type: z.ZodLiteral<"unsubscribed">;
2703
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers"]>;
2950
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
2704
2951
  coin: z.ZodOptional<z.ZodString>;
2705
2952
  }, "strip", z.ZodTypeAny, {
2706
2953
  type: "unsubscribed";
2707
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
2954
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2708
2955
  coin?: string | undefined;
2709
2956
  }, {
2710
2957
  type: "unsubscribed";
2711
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
2958
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2712
2959
  coin?: string | undefined;
2713
2960
  }>;
2714
2961
  declare const WsPongSchema: z.ZodObject<{
@@ -2730,23 +2977,23 @@ declare const WsErrorSchema: z.ZodObject<{
2730
2977
  }>;
2731
2978
  declare const WsDataSchema: z.ZodObject<{
2732
2979
  type: z.ZodLiteral<"data">;
2733
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers"]>;
2980
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
2734
2981
  coin: z.ZodString;
2735
2982
  data: z.ZodUnknown;
2736
2983
  }, "strip", z.ZodTypeAny, {
2737
2984
  type: "data";
2738
2985
  coin: string;
2739
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
2986
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2740
2987
  data?: unknown;
2741
2988
  }, {
2742
2989
  type: "data";
2743
2990
  coin: string;
2744
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
2991
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2745
2992
  data?: unknown;
2746
2993
  }>;
2747
2994
  declare const WsReplayStartedSchema: z.ZodObject<{
2748
2995
  type: z.ZodLiteral<"replay_started">;
2749
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers"]>;
2996
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
2750
2997
  coin: z.ZodString;
2751
2998
  start: z.ZodNumber;
2752
2999
  end: z.ZodNumber;
@@ -2754,53 +3001,53 @@ declare const WsReplayStartedSchema: z.ZodObject<{
2754
3001
  }, "strip", z.ZodTypeAny, {
2755
3002
  type: "replay_started";
2756
3003
  coin: string;
2757
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3004
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2758
3005
  start: number;
2759
3006
  end: number;
2760
3007
  speed: number;
2761
3008
  }, {
2762
3009
  type: "replay_started";
2763
3010
  coin: string;
2764
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3011
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2765
3012
  start: number;
2766
3013
  end: number;
2767
3014
  speed: number;
2768
3015
  }>;
2769
3016
  declare const WsReplayPausedSchema: z.ZodObject<{
2770
3017
  type: z.ZodLiteral<"replay_paused">;
2771
- currentTimestamp: z.ZodNumber;
3018
+ current_timestamp: z.ZodNumber;
2772
3019
  }, "strip", z.ZodTypeAny, {
2773
3020
  type: "replay_paused";
2774
- currentTimestamp: number;
3021
+ current_timestamp: number;
2775
3022
  }, {
2776
3023
  type: "replay_paused";
2777
- currentTimestamp: number;
3024
+ current_timestamp: number;
2778
3025
  }>;
2779
3026
  declare const WsReplayResumedSchema: z.ZodObject<{
2780
3027
  type: z.ZodLiteral<"replay_resumed">;
2781
- currentTimestamp: z.ZodNumber;
3028
+ current_timestamp: z.ZodNumber;
2782
3029
  }, "strip", z.ZodTypeAny, {
2783
3030
  type: "replay_resumed";
2784
- currentTimestamp: number;
3031
+ current_timestamp: number;
2785
3032
  }, {
2786
3033
  type: "replay_resumed";
2787
- currentTimestamp: number;
3034
+ current_timestamp: number;
2788
3035
  }>;
2789
3036
  declare const WsReplayCompletedSchema: z.ZodObject<{
2790
3037
  type: z.ZodLiteral<"replay_completed">;
2791
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers"]>;
3038
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
2792
3039
  coin: z.ZodString;
2793
- snapshotsSent: z.ZodNumber;
3040
+ snapshots_sent: z.ZodNumber;
2794
3041
  }, "strip", z.ZodTypeAny, {
2795
3042
  type: "replay_completed";
2796
3043
  coin: string;
2797
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
2798
- snapshotsSent: number;
3044
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
3045
+ snapshots_sent: number;
2799
3046
  }, {
2800
3047
  type: "replay_completed";
2801
3048
  coin: string;
2802
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
2803
- snapshotsSent: number;
3049
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
3050
+ snapshots_sent: number;
2804
3051
  }>;
2805
3052
  declare const WsReplayStoppedSchema: z.ZodObject<{
2806
3053
  type: z.ZodLiteral<"replay_stopped">;
@@ -2811,7 +3058,7 @@ declare const WsReplayStoppedSchema: z.ZodObject<{
2811
3058
  }>;
2812
3059
  declare const WsHistoricalDataSchema: z.ZodObject<{
2813
3060
  type: z.ZodLiteral<"historical_data">;
2814
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers"]>;
3061
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
2815
3062
  coin: z.ZodString;
2816
3063
  timestamp: z.ZodNumber;
2817
3064
  data: z.ZodUnknown;
@@ -2819,43 +3066,62 @@ declare const WsHistoricalDataSchema: z.ZodObject<{
2819
3066
  type: "historical_data";
2820
3067
  coin: string;
2821
3068
  timestamp: number;
2822
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3069
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2823
3070
  data?: unknown;
2824
3071
  }, {
2825
3072
  type: "historical_data";
2826
3073
  coin: string;
2827
3074
  timestamp: number;
2828
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3075
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
3076
+ data?: unknown;
3077
+ }>;
3078
+ declare const WsReplaySnapshotSchema: z.ZodObject<{
3079
+ type: z.ZodLiteral<"replay_snapshot">;
3080
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
3081
+ coin: z.ZodString;
3082
+ timestamp: z.ZodNumber;
3083
+ data: z.ZodUnknown;
3084
+ }, "strip", z.ZodTypeAny, {
3085
+ type: "replay_snapshot";
3086
+ coin: string;
3087
+ timestamp: number;
3088
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
3089
+ data?: unknown;
3090
+ }, {
3091
+ type: "replay_snapshot";
3092
+ coin: string;
3093
+ timestamp: number;
3094
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2829
3095
  data?: unknown;
2830
3096
  }>;
2831
3097
  declare const WsStreamStartedSchema: z.ZodObject<{
2832
3098
  type: z.ZodLiteral<"stream_started">;
2833
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers"]>;
3099
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
2834
3100
  coin: z.ZodString;
2835
3101
  start: z.ZodNumber;
2836
3102
  end: z.ZodNumber;
2837
3103
  }, "strip", z.ZodTypeAny, {
2838
3104
  type: "stream_started";
2839
3105
  coin: string;
2840
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3106
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2841
3107
  start: number;
2842
3108
  end: number;
2843
3109
  }, {
2844
3110
  type: "stream_started";
2845
3111
  coin: string;
2846
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3112
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2847
3113
  start: number;
2848
3114
  end: number;
2849
3115
  }>;
2850
3116
  declare const WsStreamProgressSchema: z.ZodObject<{
2851
3117
  type: z.ZodLiteral<"stream_progress">;
2852
- snapshotsSent: z.ZodNumber;
3118
+ snapshots_sent: z.ZodNumber;
2853
3119
  }, "strip", z.ZodTypeAny, {
2854
3120
  type: "stream_progress";
2855
- snapshotsSent: number;
3121
+ snapshots_sent: number;
2856
3122
  }, {
2857
3123
  type: "stream_progress";
2858
- snapshotsSent: number;
3124
+ snapshots_sent: number;
2859
3125
  }>;
2860
3126
  declare const TimestampedRecordSchema: z.ZodObject<{
2861
3127
  timestamp: z.ZodNumber;
@@ -2869,7 +3135,7 @@ declare const TimestampedRecordSchema: z.ZodObject<{
2869
3135
  }>;
2870
3136
  declare const WsHistoricalBatchSchema: z.ZodObject<{
2871
3137
  type: z.ZodLiteral<"historical_batch">;
2872
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers"]>;
3138
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
2873
3139
  coin: z.ZodString;
2874
3140
  data: z.ZodArray<z.ZodObject<{
2875
3141
  timestamp: z.ZodNumber;
@@ -2888,7 +3154,7 @@ declare const WsHistoricalBatchSchema: z.ZodObject<{
2888
3154
  }[];
2889
3155
  type: "historical_batch";
2890
3156
  coin: string;
2891
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3157
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2892
3158
  }, {
2893
3159
  data: {
2894
3160
  timestamp: number;
@@ -2896,57 +3162,57 @@ declare const WsHistoricalBatchSchema: z.ZodObject<{
2896
3162
  }[];
2897
3163
  type: "historical_batch";
2898
3164
  coin: string;
2899
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3165
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2900
3166
  }>;
2901
3167
  declare const WsStreamCompletedSchema: z.ZodObject<{
2902
3168
  type: z.ZodLiteral<"stream_completed">;
2903
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers"]>;
3169
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
2904
3170
  coin: z.ZodString;
2905
- snapshotsSent: z.ZodNumber;
3171
+ snapshots_sent: z.ZodNumber;
2906
3172
  }, "strip", z.ZodTypeAny, {
2907
3173
  type: "stream_completed";
2908
3174
  coin: string;
2909
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
2910
- snapshotsSent: number;
3175
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
3176
+ snapshots_sent: number;
2911
3177
  }, {
2912
3178
  type: "stream_completed";
2913
3179
  coin: string;
2914
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
2915
- snapshotsSent: number;
3180
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
3181
+ snapshots_sent: number;
2916
3182
  }>;
2917
3183
  declare const WsStreamStoppedSchema: z.ZodObject<{
2918
3184
  type: z.ZodLiteral<"stream_stopped">;
2919
- snapshotsSent: z.ZodNumber;
3185
+ snapshots_sent: z.ZodNumber;
2920
3186
  }, "strip", z.ZodTypeAny, {
2921
3187
  type: "stream_stopped";
2922
- snapshotsSent: number;
3188
+ snapshots_sent: number;
2923
3189
  }, {
2924
3190
  type: "stream_stopped";
2925
- snapshotsSent: number;
3191
+ snapshots_sent: number;
2926
3192
  }>;
2927
3193
  declare const WsServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2928
3194
  type: z.ZodLiteral<"subscribed">;
2929
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers"]>;
3195
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
2930
3196
  coin: z.ZodOptional<z.ZodString>;
2931
3197
  }, "strip", z.ZodTypeAny, {
2932
3198
  type: "subscribed";
2933
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3199
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2934
3200
  coin?: string | undefined;
2935
3201
  }, {
2936
3202
  type: "subscribed";
2937
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3203
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2938
3204
  coin?: string | undefined;
2939
3205
  }>, z.ZodObject<{
2940
3206
  type: z.ZodLiteral<"unsubscribed">;
2941
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers"]>;
3207
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
2942
3208
  coin: z.ZodOptional<z.ZodString>;
2943
3209
  }, "strip", z.ZodTypeAny, {
2944
3210
  type: "unsubscribed";
2945
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3211
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2946
3212
  coin?: string | undefined;
2947
3213
  }, {
2948
3214
  type: "unsubscribed";
2949
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3215
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2950
3216
  coin?: string | undefined;
2951
3217
  }>, z.ZodObject<{
2952
3218
  type: z.ZodLiteral<"pong">;
@@ -2965,22 +3231,22 @@ declare const WsServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2965
3231
  type: "error";
2966
3232
  }>, z.ZodObject<{
2967
3233
  type: z.ZodLiteral<"data">;
2968
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers"]>;
3234
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
2969
3235
  coin: z.ZodString;
2970
3236
  data: z.ZodUnknown;
2971
3237
  }, "strip", z.ZodTypeAny, {
2972
3238
  type: "data";
2973
3239
  coin: string;
2974
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3240
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2975
3241
  data?: unknown;
2976
3242
  }, {
2977
3243
  type: "data";
2978
3244
  coin: string;
2979
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3245
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2980
3246
  data?: unknown;
2981
3247
  }>, z.ZodObject<{
2982
3248
  type: z.ZodLiteral<"replay_started">;
2983
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers"]>;
3249
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
2984
3250
  coin: z.ZodString;
2985
3251
  start: z.ZodNumber;
2986
3252
  end: z.ZodNumber;
@@ -2988,59 +3254,77 @@ declare const WsServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2988
3254
  }, "strip", z.ZodTypeAny, {
2989
3255
  type: "replay_started";
2990
3256
  coin: string;
2991
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3257
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2992
3258
  start: number;
2993
3259
  end: number;
2994
3260
  speed: number;
2995
3261
  }, {
2996
3262
  type: "replay_started";
2997
3263
  coin: string;
2998
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3264
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
2999
3265
  start: number;
3000
3266
  end: number;
3001
3267
  speed: number;
3002
3268
  }>, z.ZodObject<{
3003
3269
  type: z.ZodLiteral<"replay_paused">;
3004
- currentTimestamp: z.ZodNumber;
3270
+ current_timestamp: z.ZodNumber;
3005
3271
  }, "strip", z.ZodTypeAny, {
3006
3272
  type: "replay_paused";
3007
- currentTimestamp: number;
3273
+ current_timestamp: number;
3008
3274
  }, {
3009
3275
  type: "replay_paused";
3010
- currentTimestamp: number;
3276
+ current_timestamp: number;
3011
3277
  }>, z.ZodObject<{
3012
3278
  type: z.ZodLiteral<"replay_resumed">;
3013
- currentTimestamp: z.ZodNumber;
3279
+ current_timestamp: z.ZodNumber;
3014
3280
  }, "strip", z.ZodTypeAny, {
3015
3281
  type: "replay_resumed";
3016
- currentTimestamp: number;
3282
+ current_timestamp: number;
3017
3283
  }, {
3018
3284
  type: "replay_resumed";
3019
- currentTimestamp: number;
3285
+ current_timestamp: number;
3020
3286
  }>, z.ZodObject<{
3021
3287
  type: z.ZodLiteral<"replay_completed">;
3022
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers"]>;
3288
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
3023
3289
  coin: z.ZodString;
3024
- snapshotsSent: z.ZodNumber;
3290
+ snapshots_sent: z.ZodNumber;
3025
3291
  }, "strip", z.ZodTypeAny, {
3026
3292
  type: "replay_completed";
3027
3293
  coin: string;
3028
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3029
- snapshotsSent: number;
3294
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
3295
+ snapshots_sent: number;
3030
3296
  }, {
3031
3297
  type: "replay_completed";
3032
3298
  coin: string;
3033
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3034
- snapshotsSent: number;
3299
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
3300
+ snapshots_sent: number;
3035
3301
  }>, z.ZodObject<{
3036
3302
  type: z.ZodLiteral<"replay_stopped">;
3037
3303
  }, "strip", z.ZodTypeAny, {
3038
3304
  type: "replay_stopped";
3039
3305
  }, {
3040
3306
  type: "replay_stopped";
3307
+ }>, z.ZodObject<{
3308
+ type: z.ZodLiteral<"replay_snapshot">;
3309
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
3310
+ coin: z.ZodString;
3311
+ timestamp: z.ZodNumber;
3312
+ data: z.ZodUnknown;
3313
+ }, "strip", z.ZodTypeAny, {
3314
+ type: "replay_snapshot";
3315
+ coin: string;
3316
+ timestamp: number;
3317
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
3318
+ data?: unknown;
3319
+ }, {
3320
+ type: "replay_snapshot";
3321
+ coin: string;
3322
+ timestamp: number;
3323
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
3324
+ data?: unknown;
3041
3325
  }>, z.ZodObject<{
3042
3326
  type: z.ZodLiteral<"historical_data">;
3043
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers"]>;
3327
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
3044
3328
  coin: z.ZodString;
3045
3329
  timestamp: z.ZodNumber;
3046
3330
  data: z.ZodUnknown;
@@ -3048,44 +3332,44 @@ declare const WsServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3048
3332
  type: "historical_data";
3049
3333
  coin: string;
3050
3334
  timestamp: number;
3051
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3335
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
3052
3336
  data?: unknown;
3053
3337
  }, {
3054
3338
  type: "historical_data";
3055
3339
  coin: string;
3056
3340
  timestamp: number;
3057
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3341
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
3058
3342
  data?: unknown;
3059
3343
  }>, z.ZodObject<{
3060
3344
  type: z.ZodLiteral<"stream_started">;
3061
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers"]>;
3345
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
3062
3346
  coin: z.ZodString;
3063
3347
  start: z.ZodNumber;
3064
3348
  end: z.ZodNumber;
3065
3349
  }, "strip", z.ZodTypeAny, {
3066
3350
  type: "stream_started";
3067
3351
  coin: string;
3068
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3352
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
3069
3353
  start: number;
3070
3354
  end: number;
3071
3355
  }, {
3072
3356
  type: "stream_started";
3073
3357
  coin: string;
3074
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3358
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
3075
3359
  start: number;
3076
3360
  end: number;
3077
3361
  }>, z.ZodObject<{
3078
3362
  type: z.ZodLiteral<"stream_progress">;
3079
- snapshotsSent: z.ZodNumber;
3363
+ snapshots_sent: z.ZodNumber;
3080
3364
  }, "strip", z.ZodTypeAny, {
3081
3365
  type: "stream_progress";
3082
- snapshotsSent: number;
3366
+ snapshots_sent: number;
3083
3367
  }, {
3084
3368
  type: "stream_progress";
3085
- snapshotsSent: number;
3369
+ snapshots_sent: number;
3086
3370
  }>, z.ZodObject<{
3087
3371
  type: z.ZodLiteral<"historical_batch">;
3088
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers"]>;
3372
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
3089
3373
  coin: z.ZodString;
3090
3374
  data: z.ZodArray<z.ZodObject<{
3091
3375
  timestamp: z.ZodNumber;
@@ -3104,7 +3388,7 @@ declare const WsServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3104
3388
  }[];
3105
3389
  type: "historical_batch";
3106
3390
  coin: string;
3107
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3391
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
3108
3392
  }, {
3109
3393
  data: {
3110
3394
  timestamp: number;
@@ -3112,31 +3396,31 @@ declare const WsServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3112
3396
  }[];
3113
3397
  type: "historical_batch";
3114
3398
  coin: string;
3115
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3399
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
3116
3400
  }>, z.ZodObject<{
3117
3401
  type: z.ZodLiteral<"stream_completed">;
3118
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers"]>;
3402
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding"]>;
3119
3403
  coin: z.ZodString;
3120
- snapshotsSent: z.ZodNumber;
3404
+ snapshots_sent: z.ZodNumber;
3121
3405
  }, "strip", z.ZodTypeAny, {
3122
3406
  type: "stream_completed";
3123
3407
  coin: string;
3124
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3125
- snapshotsSent: number;
3408
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
3409
+ snapshots_sent: number;
3126
3410
  }, {
3127
3411
  type: "stream_completed";
3128
3412
  coin: string;
3129
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers";
3130
- snapshotsSent: number;
3413
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding";
3414
+ snapshots_sent: number;
3131
3415
  }>, z.ZodObject<{
3132
3416
  type: z.ZodLiteral<"stream_stopped">;
3133
- snapshotsSent: z.ZodNumber;
3417
+ snapshots_sent: z.ZodNumber;
3134
3418
  }, "strip", z.ZodTypeAny, {
3135
3419
  type: "stream_stopped";
3136
- snapshotsSent: number;
3420
+ snapshots_sent: number;
3137
3421
  }, {
3138
3422
  type: "stream_stopped";
3139
- snapshotsSent: number;
3423
+ snapshots_sent: number;
3140
3424
  }>]>;
3141
3425
  declare const OrderBookResponseSchema: z.ZodObject<{
3142
3426
  success: z.ZodBoolean;
@@ -4123,6 +4407,620 @@ declare const LiquidationArrayResponseSchema: z.ZodObject<{
4123
4407
  nextCursor?: string | undefined;
4124
4408
  };
4125
4409
  }>;
4410
+ declare const LiquidationVolumeSchema: z.ZodObject<{
4411
+ coin: z.ZodString;
4412
+ timestamp: z.ZodString;
4413
+ totalUsd: z.ZodNumber;
4414
+ longUsd: z.ZodNumber;
4415
+ shortUsd: z.ZodNumber;
4416
+ count: z.ZodNumber;
4417
+ longCount: z.ZodNumber;
4418
+ shortCount: z.ZodNumber;
4419
+ }, "strip", z.ZodTypeAny, {
4420
+ count: number;
4421
+ coin: string;
4422
+ timestamp: string;
4423
+ totalUsd: number;
4424
+ longUsd: number;
4425
+ shortUsd: number;
4426
+ longCount: number;
4427
+ shortCount: number;
4428
+ }, {
4429
+ count: number;
4430
+ coin: string;
4431
+ timestamp: string;
4432
+ totalUsd: number;
4433
+ longUsd: number;
4434
+ shortUsd: number;
4435
+ longCount: number;
4436
+ shortCount: number;
4437
+ }>;
4438
+ declare const LiquidationVolumeArrayResponseSchema: z.ZodObject<{
4439
+ success: z.ZodOptional<z.ZodBoolean>;
4440
+ data: z.ZodArray<z.ZodObject<{
4441
+ coin: z.ZodString;
4442
+ timestamp: z.ZodString;
4443
+ totalUsd: z.ZodNumber;
4444
+ longUsd: z.ZodNumber;
4445
+ shortUsd: z.ZodNumber;
4446
+ count: z.ZodNumber;
4447
+ longCount: z.ZodNumber;
4448
+ shortCount: z.ZodNumber;
4449
+ }, "strip", z.ZodTypeAny, {
4450
+ count: number;
4451
+ coin: string;
4452
+ timestamp: string;
4453
+ totalUsd: number;
4454
+ longUsd: number;
4455
+ shortUsd: number;
4456
+ longCount: number;
4457
+ shortCount: number;
4458
+ }, {
4459
+ count: number;
4460
+ coin: string;
4461
+ timestamp: string;
4462
+ totalUsd: number;
4463
+ longUsd: number;
4464
+ shortUsd: number;
4465
+ longCount: number;
4466
+ shortCount: number;
4467
+ }>, "many">;
4468
+ meta: z.ZodOptional<z.ZodObject<{
4469
+ count: z.ZodNumber;
4470
+ nextCursor: z.ZodOptional<z.ZodString>;
4471
+ requestId: z.ZodString;
4472
+ }, "strip", z.ZodTypeAny, {
4473
+ count: number;
4474
+ requestId: string;
4475
+ nextCursor?: string | undefined;
4476
+ }, {
4477
+ count: number;
4478
+ requestId: string;
4479
+ nextCursor?: string | undefined;
4480
+ }>>;
4481
+ }, "strip", z.ZodTypeAny, {
4482
+ data: {
4483
+ count: number;
4484
+ coin: string;
4485
+ timestamp: string;
4486
+ totalUsd: number;
4487
+ longUsd: number;
4488
+ shortUsd: number;
4489
+ longCount: number;
4490
+ shortCount: number;
4491
+ }[];
4492
+ success?: boolean | undefined;
4493
+ meta?: {
4494
+ count: number;
4495
+ requestId: string;
4496
+ nextCursor?: string | undefined;
4497
+ } | undefined;
4498
+ }, {
4499
+ data: {
4500
+ count: number;
4501
+ coin: string;
4502
+ timestamp: string;
4503
+ totalUsd: number;
4504
+ longUsd: number;
4505
+ shortUsd: number;
4506
+ longCount: number;
4507
+ shortCount: number;
4508
+ }[];
4509
+ success?: boolean | undefined;
4510
+ meta?: {
4511
+ count: number;
4512
+ requestId: string;
4513
+ nextCursor?: string | undefined;
4514
+ } | undefined;
4515
+ }>;
4516
+ declare const DataTypeFreshnessInfoSchema: z.ZodObject<{
4517
+ lastUpdated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4518
+ lagMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4519
+ }, "strip", z.ZodTypeAny, {
4520
+ lastUpdated?: string | null | undefined;
4521
+ lagMs?: number | null | undefined;
4522
+ }, {
4523
+ lastUpdated?: string | null | undefined;
4524
+ lagMs?: number | null | undefined;
4525
+ }>;
4526
+ declare const CoinFreshnessSchema: z.ZodObject<{
4527
+ coin: z.ZodString;
4528
+ exchange: z.ZodString;
4529
+ measuredAt: z.ZodString;
4530
+ orderbook: z.ZodObject<{
4531
+ lastUpdated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4532
+ lagMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4533
+ }, "strip", z.ZodTypeAny, {
4534
+ lastUpdated?: string | null | undefined;
4535
+ lagMs?: number | null | undefined;
4536
+ }, {
4537
+ lastUpdated?: string | null | undefined;
4538
+ lagMs?: number | null | undefined;
4539
+ }>;
4540
+ trades: z.ZodObject<{
4541
+ lastUpdated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4542
+ lagMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4543
+ }, "strip", z.ZodTypeAny, {
4544
+ lastUpdated?: string | null | undefined;
4545
+ lagMs?: number | null | undefined;
4546
+ }, {
4547
+ lastUpdated?: string | null | undefined;
4548
+ lagMs?: number | null | undefined;
4549
+ }>;
4550
+ funding: z.ZodObject<{
4551
+ lastUpdated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4552
+ lagMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4553
+ }, "strip", z.ZodTypeAny, {
4554
+ lastUpdated?: string | null | undefined;
4555
+ lagMs?: number | null | undefined;
4556
+ }, {
4557
+ lastUpdated?: string | null | undefined;
4558
+ lagMs?: number | null | undefined;
4559
+ }>;
4560
+ openInterest: z.ZodObject<{
4561
+ lastUpdated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4562
+ lagMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4563
+ }, "strip", z.ZodTypeAny, {
4564
+ lastUpdated?: string | null | undefined;
4565
+ lagMs?: number | null | undefined;
4566
+ }, {
4567
+ lastUpdated?: string | null | undefined;
4568
+ lagMs?: number | null | undefined;
4569
+ }>;
4570
+ liquidations: z.ZodOptional<z.ZodObject<{
4571
+ lastUpdated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4572
+ lagMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4573
+ }, "strip", z.ZodTypeAny, {
4574
+ lastUpdated?: string | null | undefined;
4575
+ lagMs?: number | null | undefined;
4576
+ }, {
4577
+ lastUpdated?: string | null | undefined;
4578
+ lagMs?: number | null | undefined;
4579
+ }>>;
4580
+ }, "strip", z.ZodTypeAny, {
4581
+ orderbook: {
4582
+ lastUpdated?: string | null | undefined;
4583
+ lagMs?: number | null | undefined;
4584
+ };
4585
+ trades: {
4586
+ lastUpdated?: string | null | undefined;
4587
+ lagMs?: number | null | undefined;
4588
+ };
4589
+ funding: {
4590
+ lastUpdated?: string | null | undefined;
4591
+ lagMs?: number | null | undefined;
4592
+ };
4593
+ coin: string;
4594
+ openInterest: {
4595
+ lastUpdated?: string | null | undefined;
4596
+ lagMs?: number | null | undefined;
4597
+ };
4598
+ exchange: string;
4599
+ measuredAt: string;
4600
+ liquidations?: {
4601
+ lastUpdated?: string | null | undefined;
4602
+ lagMs?: number | null | undefined;
4603
+ } | undefined;
4604
+ }, {
4605
+ orderbook: {
4606
+ lastUpdated?: string | null | undefined;
4607
+ lagMs?: number | null | undefined;
4608
+ };
4609
+ trades: {
4610
+ lastUpdated?: string | null | undefined;
4611
+ lagMs?: number | null | undefined;
4612
+ };
4613
+ funding: {
4614
+ lastUpdated?: string | null | undefined;
4615
+ lagMs?: number | null | undefined;
4616
+ };
4617
+ coin: string;
4618
+ openInterest: {
4619
+ lastUpdated?: string | null | undefined;
4620
+ lagMs?: number | null | undefined;
4621
+ };
4622
+ exchange: string;
4623
+ measuredAt: string;
4624
+ liquidations?: {
4625
+ lastUpdated?: string | null | undefined;
4626
+ lagMs?: number | null | undefined;
4627
+ } | undefined;
4628
+ }>;
4629
+ declare const CoinFreshnessResponseSchema: z.ZodObject<{
4630
+ success: z.ZodOptional<z.ZodBoolean>;
4631
+ data: z.ZodObject<{
4632
+ coin: z.ZodString;
4633
+ exchange: z.ZodString;
4634
+ measuredAt: z.ZodString;
4635
+ orderbook: z.ZodObject<{
4636
+ lastUpdated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4637
+ lagMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4638
+ }, "strip", z.ZodTypeAny, {
4639
+ lastUpdated?: string | null | undefined;
4640
+ lagMs?: number | null | undefined;
4641
+ }, {
4642
+ lastUpdated?: string | null | undefined;
4643
+ lagMs?: number | null | undefined;
4644
+ }>;
4645
+ trades: z.ZodObject<{
4646
+ lastUpdated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4647
+ lagMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4648
+ }, "strip", z.ZodTypeAny, {
4649
+ lastUpdated?: string | null | undefined;
4650
+ lagMs?: number | null | undefined;
4651
+ }, {
4652
+ lastUpdated?: string | null | undefined;
4653
+ lagMs?: number | null | undefined;
4654
+ }>;
4655
+ funding: z.ZodObject<{
4656
+ lastUpdated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4657
+ lagMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4658
+ }, "strip", z.ZodTypeAny, {
4659
+ lastUpdated?: string | null | undefined;
4660
+ lagMs?: number | null | undefined;
4661
+ }, {
4662
+ lastUpdated?: string | null | undefined;
4663
+ lagMs?: number | null | undefined;
4664
+ }>;
4665
+ openInterest: z.ZodObject<{
4666
+ lastUpdated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4667
+ lagMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4668
+ }, "strip", z.ZodTypeAny, {
4669
+ lastUpdated?: string | null | undefined;
4670
+ lagMs?: number | null | undefined;
4671
+ }, {
4672
+ lastUpdated?: string | null | undefined;
4673
+ lagMs?: number | null | undefined;
4674
+ }>;
4675
+ liquidations: z.ZodOptional<z.ZodObject<{
4676
+ lastUpdated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4677
+ lagMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4678
+ }, "strip", z.ZodTypeAny, {
4679
+ lastUpdated?: string | null | undefined;
4680
+ lagMs?: number | null | undefined;
4681
+ }, {
4682
+ lastUpdated?: string | null | undefined;
4683
+ lagMs?: number | null | undefined;
4684
+ }>>;
4685
+ }, "strip", z.ZodTypeAny, {
4686
+ orderbook: {
4687
+ lastUpdated?: string | null | undefined;
4688
+ lagMs?: number | null | undefined;
4689
+ };
4690
+ trades: {
4691
+ lastUpdated?: string | null | undefined;
4692
+ lagMs?: number | null | undefined;
4693
+ };
4694
+ funding: {
4695
+ lastUpdated?: string | null | undefined;
4696
+ lagMs?: number | null | undefined;
4697
+ };
4698
+ coin: string;
4699
+ openInterest: {
4700
+ lastUpdated?: string | null | undefined;
4701
+ lagMs?: number | null | undefined;
4702
+ };
4703
+ exchange: string;
4704
+ measuredAt: string;
4705
+ liquidations?: {
4706
+ lastUpdated?: string | null | undefined;
4707
+ lagMs?: number | null | undefined;
4708
+ } | undefined;
4709
+ }, {
4710
+ orderbook: {
4711
+ lastUpdated?: string | null | undefined;
4712
+ lagMs?: number | null | undefined;
4713
+ };
4714
+ trades: {
4715
+ lastUpdated?: string | null | undefined;
4716
+ lagMs?: number | null | undefined;
4717
+ };
4718
+ funding: {
4719
+ lastUpdated?: string | null | undefined;
4720
+ lagMs?: number | null | undefined;
4721
+ };
4722
+ coin: string;
4723
+ openInterest: {
4724
+ lastUpdated?: string | null | undefined;
4725
+ lagMs?: number | null | undefined;
4726
+ };
4727
+ exchange: string;
4728
+ measuredAt: string;
4729
+ liquidations?: {
4730
+ lastUpdated?: string | null | undefined;
4731
+ lagMs?: number | null | undefined;
4732
+ } | undefined;
4733
+ }>;
4734
+ meta: z.ZodOptional<z.ZodObject<{
4735
+ count: z.ZodNumber;
4736
+ nextCursor: z.ZodOptional<z.ZodString>;
4737
+ requestId: z.ZodString;
4738
+ }, "strip", z.ZodTypeAny, {
4739
+ count: number;
4740
+ requestId: string;
4741
+ nextCursor?: string | undefined;
4742
+ }, {
4743
+ count: number;
4744
+ requestId: string;
4745
+ nextCursor?: string | undefined;
4746
+ }>>;
4747
+ }, "strip", z.ZodTypeAny, {
4748
+ data: {
4749
+ orderbook: {
4750
+ lastUpdated?: string | null | undefined;
4751
+ lagMs?: number | null | undefined;
4752
+ };
4753
+ trades: {
4754
+ lastUpdated?: string | null | undefined;
4755
+ lagMs?: number | null | undefined;
4756
+ };
4757
+ funding: {
4758
+ lastUpdated?: string | null | undefined;
4759
+ lagMs?: number | null | undefined;
4760
+ };
4761
+ coin: string;
4762
+ openInterest: {
4763
+ lastUpdated?: string | null | undefined;
4764
+ lagMs?: number | null | undefined;
4765
+ };
4766
+ exchange: string;
4767
+ measuredAt: string;
4768
+ liquidations?: {
4769
+ lastUpdated?: string | null | undefined;
4770
+ lagMs?: number | null | undefined;
4771
+ } | undefined;
4772
+ };
4773
+ success?: boolean | undefined;
4774
+ meta?: {
4775
+ count: number;
4776
+ requestId: string;
4777
+ nextCursor?: string | undefined;
4778
+ } | undefined;
4779
+ }, {
4780
+ data: {
4781
+ orderbook: {
4782
+ lastUpdated?: string | null | undefined;
4783
+ lagMs?: number | null | undefined;
4784
+ };
4785
+ trades: {
4786
+ lastUpdated?: string | null | undefined;
4787
+ lagMs?: number | null | undefined;
4788
+ };
4789
+ funding: {
4790
+ lastUpdated?: string | null | undefined;
4791
+ lagMs?: number | null | undefined;
4792
+ };
4793
+ coin: string;
4794
+ openInterest: {
4795
+ lastUpdated?: string | null | undefined;
4796
+ lagMs?: number | null | undefined;
4797
+ };
4798
+ exchange: string;
4799
+ measuredAt: string;
4800
+ liquidations?: {
4801
+ lastUpdated?: string | null | undefined;
4802
+ lagMs?: number | null | undefined;
4803
+ } | undefined;
4804
+ };
4805
+ success?: boolean | undefined;
4806
+ meta?: {
4807
+ count: number;
4808
+ requestId: string;
4809
+ nextCursor?: string | undefined;
4810
+ } | undefined;
4811
+ }>;
4812
+ declare const CoinSummarySchema: z.ZodObject<{
4813
+ coin: z.ZodString;
4814
+ timestamp: z.ZodString;
4815
+ markPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4816
+ oraclePrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4817
+ midPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4818
+ fundingRate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4819
+ premium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4820
+ openInterest: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4821
+ volume24h: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4822
+ liquidationVolume24h: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4823
+ longLiquidationVolume24h: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4824
+ shortLiquidationVolume24h: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4825
+ }, "strip", z.ZodTypeAny, {
4826
+ coin: string;
4827
+ timestamp: string;
4828
+ midPrice?: string | null | undefined;
4829
+ fundingRate?: string | null | undefined;
4830
+ premium?: string | null | undefined;
4831
+ openInterest?: string | null | undefined;
4832
+ markPrice?: string | null | undefined;
4833
+ oraclePrice?: string | null | undefined;
4834
+ volume24h?: string | null | undefined;
4835
+ liquidationVolume24h?: number | null | undefined;
4836
+ longLiquidationVolume24h?: number | null | undefined;
4837
+ shortLiquidationVolume24h?: number | null | undefined;
4838
+ }, {
4839
+ coin: string;
4840
+ timestamp: string;
4841
+ midPrice?: string | null | undefined;
4842
+ fundingRate?: string | null | undefined;
4843
+ premium?: string | null | undefined;
4844
+ openInterest?: string | null | undefined;
4845
+ markPrice?: string | null | undefined;
4846
+ oraclePrice?: string | null | undefined;
4847
+ volume24h?: string | null | undefined;
4848
+ liquidationVolume24h?: number | null | undefined;
4849
+ longLiquidationVolume24h?: number | null | undefined;
4850
+ shortLiquidationVolume24h?: number | null | undefined;
4851
+ }>;
4852
+ declare const CoinSummaryResponseSchema: z.ZodObject<{
4853
+ success: z.ZodOptional<z.ZodBoolean>;
4854
+ data: z.ZodObject<{
4855
+ coin: z.ZodString;
4856
+ timestamp: z.ZodString;
4857
+ markPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4858
+ oraclePrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4859
+ midPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4860
+ fundingRate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4861
+ premium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4862
+ openInterest: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4863
+ volume24h: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4864
+ liquidationVolume24h: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4865
+ longLiquidationVolume24h: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4866
+ shortLiquidationVolume24h: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4867
+ }, "strip", z.ZodTypeAny, {
4868
+ coin: string;
4869
+ timestamp: string;
4870
+ midPrice?: string | null | undefined;
4871
+ fundingRate?: string | null | undefined;
4872
+ premium?: string | null | undefined;
4873
+ openInterest?: string | null | undefined;
4874
+ markPrice?: string | null | undefined;
4875
+ oraclePrice?: string | null | undefined;
4876
+ volume24h?: string | null | undefined;
4877
+ liquidationVolume24h?: number | null | undefined;
4878
+ longLiquidationVolume24h?: number | null | undefined;
4879
+ shortLiquidationVolume24h?: number | null | undefined;
4880
+ }, {
4881
+ coin: string;
4882
+ timestamp: string;
4883
+ midPrice?: string | null | undefined;
4884
+ fundingRate?: string | null | undefined;
4885
+ premium?: string | null | undefined;
4886
+ openInterest?: string | null | undefined;
4887
+ markPrice?: string | null | undefined;
4888
+ oraclePrice?: string | null | undefined;
4889
+ volume24h?: string | null | undefined;
4890
+ liquidationVolume24h?: number | null | undefined;
4891
+ longLiquidationVolume24h?: number | null | undefined;
4892
+ shortLiquidationVolume24h?: number | null | undefined;
4893
+ }>;
4894
+ meta: z.ZodOptional<z.ZodObject<{
4895
+ count: z.ZodNumber;
4896
+ nextCursor: z.ZodOptional<z.ZodString>;
4897
+ requestId: z.ZodString;
4898
+ }, "strip", z.ZodTypeAny, {
4899
+ count: number;
4900
+ requestId: string;
4901
+ nextCursor?: string | undefined;
4902
+ }, {
4903
+ count: number;
4904
+ requestId: string;
4905
+ nextCursor?: string | undefined;
4906
+ }>>;
4907
+ }, "strip", z.ZodTypeAny, {
4908
+ data: {
4909
+ coin: string;
4910
+ timestamp: string;
4911
+ midPrice?: string | null | undefined;
4912
+ fundingRate?: string | null | undefined;
4913
+ premium?: string | null | undefined;
4914
+ openInterest?: string | null | undefined;
4915
+ markPrice?: string | null | undefined;
4916
+ oraclePrice?: string | null | undefined;
4917
+ volume24h?: string | null | undefined;
4918
+ liquidationVolume24h?: number | null | undefined;
4919
+ longLiquidationVolume24h?: number | null | undefined;
4920
+ shortLiquidationVolume24h?: number | null | undefined;
4921
+ };
4922
+ success?: boolean | undefined;
4923
+ meta?: {
4924
+ count: number;
4925
+ requestId: string;
4926
+ nextCursor?: string | undefined;
4927
+ } | undefined;
4928
+ }, {
4929
+ data: {
4930
+ coin: string;
4931
+ timestamp: string;
4932
+ midPrice?: string | null | undefined;
4933
+ fundingRate?: string | null | undefined;
4934
+ premium?: string | null | undefined;
4935
+ openInterest?: string | null | undefined;
4936
+ markPrice?: string | null | undefined;
4937
+ oraclePrice?: string | null | undefined;
4938
+ volume24h?: string | null | undefined;
4939
+ liquidationVolume24h?: number | null | undefined;
4940
+ longLiquidationVolume24h?: number | null | undefined;
4941
+ shortLiquidationVolume24h?: number | null | undefined;
4942
+ };
4943
+ success?: boolean | undefined;
4944
+ meta?: {
4945
+ count: number;
4946
+ requestId: string;
4947
+ nextCursor?: string | undefined;
4948
+ } | undefined;
4949
+ }>;
4950
+ declare const PriceSnapshotSchema: z.ZodObject<{
4951
+ timestamp: z.ZodString;
4952
+ markPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4953
+ oraclePrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4954
+ midPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4955
+ }, "strip", z.ZodTypeAny, {
4956
+ timestamp: string;
4957
+ midPrice?: string | null | undefined;
4958
+ markPrice?: string | null | undefined;
4959
+ oraclePrice?: string | null | undefined;
4960
+ }, {
4961
+ timestamp: string;
4962
+ midPrice?: string | null | undefined;
4963
+ markPrice?: string | null | undefined;
4964
+ oraclePrice?: string | null | undefined;
4965
+ }>;
4966
+ declare const PriceSnapshotArrayResponseSchema: z.ZodObject<{
4967
+ success: z.ZodOptional<z.ZodBoolean>;
4968
+ data: z.ZodArray<z.ZodObject<{
4969
+ timestamp: z.ZodString;
4970
+ markPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4971
+ oraclePrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4972
+ midPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4973
+ }, "strip", z.ZodTypeAny, {
4974
+ timestamp: string;
4975
+ midPrice?: string | null | undefined;
4976
+ markPrice?: string | null | undefined;
4977
+ oraclePrice?: string | null | undefined;
4978
+ }, {
4979
+ timestamp: string;
4980
+ midPrice?: string | null | undefined;
4981
+ markPrice?: string | null | undefined;
4982
+ oraclePrice?: string | null | undefined;
4983
+ }>, "many">;
4984
+ meta: z.ZodOptional<z.ZodObject<{
4985
+ count: z.ZodNumber;
4986
+ nextCursor: z.ZodOptional<z.ZodString>;
4987
+ requestId: z.ZodString;
4988
+ }, "strip", z.ZodTypeAny, {
4989
+ count: number;
4990
+ requestId: string;
4991
+ nextCursor?: string | undefined;
4992
+ }, {
4993
+ count: number;
4994
+ requestId: string;
4995
+ nextCursor?: string | undefined;
4996
+ }>>;
4997
+ }, "strip", z.ZodTypeAny, {
4998
+ data: {
4999
+ timestamp: string;
5000
+ midPrice?: string | null | undefined;
5001
+ markPrice?: string | null | undefined;
5002
+ oraclePrice?: string | null | undefined;
5003
+ }[];
5004
+ success?: boolean | undefined;
5005
+ meta?: {
5006
+ count: number;
5007
+ requestId: string;
5008
+ nextCursor?: string | undefined;
5009
+ } | undefined;
5010
+ }, {
5011
+ data: {
5012
+ timestamp: string;
5013
+ midPrice?: string | null | undefined;
5014
+ markPrice?: string | null | undefined;
5015
+ oraclePrice?: string | null | undefined;
5016
+ }[];
5017
+ success?: boolean | undefined;
5018
+ meta?: {
5019
+ count: number;
5020
+ requestId: string;
5021
+ nextCursor?: string | undefined;
5022
+ } | undefined;
5023
+ }>;
4126
5024
  type ValidatedApiMeta = z.infer<typeof ApiMetaSchema>;
4127
5025
  type ValidatedPriceLevel = z.infer<typeof PriceLevelSchema>;
4128
5026
  type ValidatedOrderBook = z.infer<typeof OrderBookSchema>;
@@ -4134,4 +5032,4 @@ type ValidatedCandle = z.infer<typeof CandleSchema>;
4134
5032
  type ValidatedLiquidation = z.infer<typeof LiquidationSchema>;
4135
5033
  type ValidatedWsServerMessage = z.infer<typeof WsServerMessageSchema>;
4136
5034
 
4137
- export { type ApiError, type ApiMeta, ApiMetaSchema, type ApiResponse, ApiResponseSchema, type Candle, CandleArrayResponseSchema, type CandleHistoryParams, type CandleInterval, CandleIntervalSchema, CandleSchema, type ClientOptions, type CompletenessMetrics, type CoverageGap, type CoverageResponse, type CursorResponse, type DataCadence, type DataFreshness, type DataTypeCoverage, type DataTypeStatus, type ExchangeCoverage, type ExchangeLatency, type ExchangeStatus, type FundingRate, FundingRateArrayResponseSchema, FundingRateResponseSchema, FundingRateSchema, type GetOrderBookParams, type GetTradesCursorParams, Hip3Client, type Hip3Instrument, HyperliquidClient, type Incident, type IncidentSeverityValue, type IncidentStatusValue, type IncidentsResponse, type Instrument, InstrumentArrayResponseSchema, InstrumentResponseSchema, InstrumentSchema, type InstrumentType, InstrumentTypeSchema, type LatencyResponse, LighterClient, type LighterGranularity, type LighterInstrument, type Liquidation, LiquidationArrayResponseSchema, type LiquidationHistoryParams, LiquidationSchema, LiquidationSideSchema, type LiquidationsByUserParams, type ListIncidentsParams, type OpenInterest, OpenInterestArrayResponseSchema, OpenInterestResponseSchema, OpenInterestSchema, type OrderBook, OrderBookArrayResponseSchema, type OrderBookHistoryParams, OrderBookReconstructor, OrderBookResponseSchema, OrderBookSchema, type OrderbookDelta, OxArchive, OxArchiveError, OxArchiveWs, type Pagination, type PriceLevel, PriceLevelSchema, type ReconstructOptions, type ReconstructedOrderBook, type RestApiLatency, type SlaActual, type SlaParams, type SlaResponse, type SlaTargets, type StatusResponse, type SymbolCoverageOptions, type SymbolCoverageResponse, type SymbolDataTypeCoverage, type SystemStatusValue, type TickData, type TickHistoryParams, type Timestamp, type TimestampedRecord, TimestampedRecordSchema, type Trade, TradeArrayResponseSchema, type TradeDirection, TradeDirectionSchema, TradeSchema, type TradeSide, TradeSideSchema, type ValidatedApiMeta, type ValidatedCandle, type ValidatedFundingRate, type ValidatedInstrument, type ValidatedLiquidation, type ValidatedOpenInterest, type ValidatedOrderBook, type ValidatedPriceLevel, type ValidatedTrade, type ValidatedWsServerMessage, type WebSocketLatency, type WsChannel, WsChannelSchema, type WsClientMessage, type WsConnectionState, WsConnectionStateSchema, type WsData, WsDataSchema, type WsError, WsErrorSchema, type WsEventHandlers, type WsHistoricalBatch, WsHistoricalBatchSchema, type WsHistoricalData, WsHistoricalDataSchema, type WsHistoricalTickData, type WsOptions, type WsPing, type WsPong, WsPongSchema, type WsReplay, type WsReplayCompleted, WsReplayCompletedSchema, type WsReplayPause, type WsReplayPaused, WsReplayPausedSchema, type WsReplayResume, type WsReplayResumed, WsReplayResumedSchema, type WsReplaySeek, type WsReplayStarted, WsReplayStartedSchema, type WsReplayStop, type WsReplayStopped, WsReplayStoppedSchema, type WsServerMessage, WsServerMessageSchema, type WsStream, type WsStreamCompleted, WsStreamCompletedSchema, type WsStreamProgress, WsStreamProgressSchema, type WsStreamStarted, WsStreamStartedSchema, type WsStreamStop, type WsStreamStopped, WsStreamStoppedSchema, type WsSubscribe, type WsSubscribed, WsSubscribedSchema, type WsUnsubscribe, type WsUnsubscribed, WsUnsubscribedSchema, OxArchive as default, reconstructFinal, reconstructOrderBook };
5035
+ export { type ApiError, type ApiMeta, ApiMetaSchema, type ApiResponse, ApiResponseSchema, type Candle, CandleArrayResponseSchema, type CandleHistoryParams, type CandleInterval, CandleIntervalSchema, CandleSchema, type ClientOptions, type CoinFreshness, CoinFreshnessResponseSchema, CoinFreshnessSchema, type CoinSummary, CoinSummaryResponseSchema, CoinSummarySchema, type CompletenessMetrics, type CoverageGap, type CoverageResponse, type CursorResponse, type DataCadence, type DataFreshness, type DataTypeCoverage, type DataTypeFreshnessInfo, DataTypeFreshnessInfoSchema, type DataTypeStatus, type ExchangeCoverage, type ExchangeLatency, type ExchangeStatus, type FundingHistoryParams, type FundingRate, FundingRateArrayResponseSchema, FundingRateResponseSchema, FundingRateSchema, type GetOrderBookParams, type GetTradesCursorParams, Hip3Client, type Hip3Instrument, HyperliquidClient, type Incident, type IncidentSeverityValue, type IncidentStatusValue, type IncidentsResponse, type Instrument, InstrumentArrayResponseSchema, InstrumentResponseSchema, InstrumentSchema, type InstrumentType, InstrumentTypeSchema, type LatencyResponse, LighterClient, type LighterGranularity, type LighterInstrument, type Liquidation, LiquidationArrayResponseSchema, type LiquidationHistoryParams, LiquidationSchema, LiquidationSideSchema, type LiquidationVolume, LiquidationVolumeArrayResponseSchema, type LiquidationVolumeParams, LiquidationVolumeSchema, type LiquidationsByUserParams, type ListIncidentsParams, type OiFundingInterval, type OpenInterest, OpenInterestArrayResponseSchema, type OpenInterestHistoryParams, OpenInterestResponseSchema, OpenInterestSchema, type OrderBook, OrderBookArrayResponseSchema, type OrderBookHistoryParams, OrderBookReconstructor, OrderBookResponseSchema, OrderBookSchema, type OrderbookDelta, OxArchive, OxArchiveError, OxArchiveWs, type Pagination, type PriceHistoryParams, type PriceLevel, PriceLevelSchema, type PriceSnapshot, PriceSnapshotArrayResponseSchema, PriceSnapshotSchema, type ReconstructOptions, type ReconstructedOrderBook, type RestApiLatency, type SlaActual, type SlaParams, type SlaResponse, type SlaTargets, type StatusResponse, type SymbolCoverageOptions, type SymbolCoverageResponse, type SymbolDataTypeCoverage, type SystemStatusValue, type TickData, type TickHistoryParams, type Timestamp, type TimestampedRecord, TimestampedRecordSchema, type Trade, TradeArrayResponseSchema, type TradeDirection, TradeDirectionSchema, TradeSchema, type TradeSide, TradeSideSchema, type ValidatedApiMeta, type ValidatedCandle, type ValidatedFundingRate, type ValidatedInstrument, type ValidatedLiquidation, type ValidatedOpenInterest, type ValidatedOrderBook, type ValidatedPriceLevel, type ValidatedTrade, type ValidatedWsServerMessage, type WebSocketLatency, type WsChannel, WsChannelSchema, type WsClientMessage, type WsConnectionState, WsConnectionStateSchema, type WsData, WsDataSchema, type WsError, WsErrorSchema, type WsEventHandlers, type WsGapDetected, type WsHistoricalBatch, WsHistoricalBatchSchema, type WsHistoricalData, WsHistoricalDataSchema, type WsHistoricalTickData, type WsOptions, type WsPing, type WsPong, WsPongSchema, type WsReplay, type WsReplayCompleted, WsReplayCompletedSchema, type WsReplayPause, type WsReplayPaused, WsReplayPausedSchema, type WsReplayResume, type WsReplayResumed, WsReplayResumedSchema, type WsReplaySeek, type WsReplaySnapshot, WsReplaySnapshotSchema, type WsReplayStarted, WsReplayStartedSchema, type WsReplayStop, type WsReplayStopped, WsReplayStoppedSchema, type WsServerMessage, WsServerMessageSchema, type WsStream, type WsStreamCompleted, WsStreamCompletedSchema, type WsStreamProgress, WsStreamProgressSchema, type WsStreamStarted, WsStreamStartedSchema, type WsStreamStop, type WsStreamStopped, WsStreamStoppedSchema, type WsSubscribe, type WsSubscribed, WsSubscribedSchema, type WsUnsubscribe, type WsUnsubscribed, WsUnsubscribedSchema, OxArchive as default, reconstructFinal, reconstructOrderBook };