@0xarchive/sdk 1.6.0 → 1.7.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
@@ -395,6 +395,79 @@ interface Hip4OutcomeSideSpec {
395
395
  /** Per-side URL slug. */
396
396
  slug?: string;
397
397
  }
398
+ /**
399
+ * Hyperliquid Spot pair metadata.
400
+ *
401
+ * Returned from `/v1/hyperliquid/spot/pairs` and
402
+ * `/v1/hyperliquid/spot/pairs/{symbol}`. Symbols are dashed canonical
403
+ * (`HYPE-USDC`, `PURR-USDC`); the server resolves the dashed form to
404
+ * Hyperliquid's wire formats (`PURR/USDC`, `@107`) internally.
405
+ *
406
+ * Spot has no funding, no open interest, no liquidations, and no candles by
407
+ * design (those are perpetual constructs). The SDK intentionally omits
408
+ * those resources from the spot client.
409
+ */
410
+ interface SpotPair {
411
+ /** Dashed canonical symbol (e.g. `HYPE-USDC`, `PURR-USDC`). */
412
+ symbol: string;
413
+ /** Base asset name (e.g. `HYPE`, `PURR`). */
414
+ baseAsset: string;
415
+ /** Quote asset name (typically `USDC`). */
416
+ quoteAsset: string;
417
+ /** Hyperliquid wire format (e.g. `PURR/USDC`, `@107`). */
418
+ wireSymbol?: string;
419
+ /** Hyperliquid asset index (e.g. `107` for `@107`). */
420
+ assetIndex?: number;
421
+ /** Size decimal precision. */
422
+ szDecimals?: number;
423
+ /** Price decimal precision. */
424
+ pxDecimals?: number;
425
+ /** Whether the pair is currently tradeable. */
426
+ isActive?: boolean;
427
+ /** Latest mark / mid price observed. */
428
+ markPrice?: number;
429
+ /** Latest mid price observed. */
430
+ midPrice?: number;
431
+ /** Timestamp of the latest market data point. */
432
+ latestTimestamp?: string;
433
+ }
434
+ /**
435
+ * Hyperliquid Spot TWAP status record.
436
+ *
437
+ * Returned from `/v1/hyperliquid/spot/twap/{symbol}` and
438
+ * `/v1/hyperliquid/spot/twap/user/{user}`. TWAP statuses come from the L4
439
+ * order stream; field shape mirrors the upstream Hyperliquid TWAP status.
440
+ * Loosely typed because upstream includes a number of optional fields and
441
+ * keeps adding to the schema.
442
+ */
443
+ interface SpotTwapStatus {
444
+ /** Dashed canonical symbol (e.g. `HYPE-USDC`). */
445
+ coin: string;
446
+ /** Status timestamp (UTC). */
447
+ timestamp: string;
448
+ /** TWAP execution id assigned by Hyperliquid. */
449
+ twapId?: number;
450
+ /** User wallet address that owns the TWAP. */
451
+ userAddress?: string;
452
+ /** Side: `B` (buy) or `A` (sell). */
453
+ side?: TradeSide;
454
+ /** Order size remaining for the TWAP. */
455
+ size?: string;
456
+ /** Total filled size so far. */
457
+ filledSize?: string;
458
+ /** Notional executed in quote currency. */
459
+ filledNotional?: string;
460
+ /** TWAP minutes window length. */
461
+ minutes?: number;
462
+ /** True if the TWAP is randomized. */
463
+ randomize?: boolean;
464
+ /** Reduce-only flag. */
465
+ reduceOnly?: boolean;
466
+ /** Status string (`activated`, `terminated`, `error`, etc.). */
467
+ status?: string;
468
+ /** Error message when status is `error`. */
469
+ error?: string;
470
+ }
398
471
  /** Filter params for `/v1/hyperliquid/hip4/outcomes`. */
399
472
  interface Hip4ListOutcomesParams {
400
473
  /** Filter by settlement state. Omit to return all. */
@@ -483,8 +556,14 @@ interface Liquidation {
483
556
  price: string;
484
557
  /** Liquidation size */
485
558
  size: string;
486
- /** Side: 'B' (buy) or 'S' (sell) */
487
- side: 'B' | 'S';
559
+ /**
560
+ * Trade side of the liquidating fill. Follows the trade convention:
561
+ * `'A'` (ask, sell-side fill, long was liquidated) or `'B'` (bid, buy-side
562
+ * fill, short was liquidated). Liquidations now share the trade wire shape
563
+ * (each row is a fill with `is_liquidation: true`) so this matches the
564
+ * `side` value on `Trade`. See CHANGELOG 1.6.0.
565
+ */
566
+ side: 'A' | 'B';
488
567
  /** Mark price at time of liquidation */
489
568
  markPrice?: string;
490
569
  /** Realized PnL from the liquidation */
@@ -497,10 +576,13 @@ interface Liquidation {
497
576
  txHash?: string;
498
577
  }
499
578
  /**
500
- * Parameters for getting liquidation history
579
+ * Parameters for getting liquidation history.
580
+ *
581
+ * Currently identical to `CursorPaginationParams`. Kept as a named type so
582
+ * that future liquidation-specific filters (e.g. `side`, `minSize`) can be
583
+ * added without breaking callers.
501
584
  */
502
- interface LiquidationHistoryParams extends CursorPaginationParams {
503
- }
585
+ type LiquidationHistoryParams = CursorPaginationParams;
504
586
  /**
505
587
  * Parameters for getting liquidations by user
506
588
  */
@@ -649,7 +731,7 @@ interface PriceHistoryParams extends CursorPaginationParams {
649
731
  * Liquidation messages share the trade wire format: each item is a fill row
650
732
  * with `is_liquidation: true`.
651
733
  */
652
- type WsChannel = 'orderbook' | 'trades' | 'candles' | 'liquidations' | 'ticker' | 'all_tickers' | 'open_interest' | 'funding' | 'lighter_orderbook' | 'lighter_trades' | 'lighter_candles' | 'lighter_open_interest' | 'lighter_funding' | 'lighter_l3_orderbook' | 'hip3_orderbook' | 'hip3_trades' | 'hip3_candles' | 'hip3_open_interest' | 'hip3_funding' | 'hip3_liquidations' | 'hip4_orderbook' | 'hip4_trades' | 'hip4_open_interest' | 'l4_diffs' | 'l4_orders' | 'hip3_l4_diffs' | 'hip3_l4_orders' | 'hip4_l4_diffs' | 'hip4_l4_orders';
734
+ type WsChannel = 'orderbook' | 'trades' | 'candles' | 'liquidations' | 'ticker' | 'all_tickers' | 'open_interest' | 'funding' | 'lighter_orderbook' | 'lighter_trades' | 'lighter_candles' | 'lighter_open_interest' | 'lighter_funding' | 'lighter_l3_orderbook' | 'hip3_orderbook' | 'hip3_trades' | 'hip3_candles' | 'hip3_open_interest' | 'hip3_funding' | 'hip3_liquidations' | 'hip4_orderbook' | 'hip4_trades' | 'hip4_open_interest' | 'spot_orderbook' | 'spot_trades' | 'spot_l4_diffs' | 'spot_l4_orders' | 'spot_twap' | 'l4_diffs' | 'l4_orders' | 'hip3_l4_diffs' | 'hip3_l4_orders' | 'hip4_l4_diffs' | 'hip4_l4_orders';
653
735
  /** Subscribe message from client */
654
736
  interface WsSubscribe {
655
737
  op: 'subscribe';
@@ -2652,6 +2734,63 @@ declare class L3OrderBookResource {
2652
2734
  history(symbol: string, params: CursorPaginationParams): Promise<CursorResponse<any[]>>;
2653
2735
  }
2654
2736
 
2737
+ /**
2738
+ * Hyperliquid Spot pairs API resource.
2739
+ *
2740
+ * Pairs are the spot equivalent of HIP-3 / Hyperliquid `instruments`. Symbols
2741
+ * are dashed canonical (`HYPE-USDC`, `PURR-USDC`); the server resolves the
2742
+ * dashed form to Hyperliquid's wire formats (`PURR/USDC`, `@107`) internally.
2743
+ *
2744
+ * @example
2745
+ * ```typescript
2746
+ * const pairs = await client.spot.pairs.list();
2747
+ * const hype = await client.spot.pairs.get('HYPE-USDC');
2748
+ * ```
2749
+ */
2750
+ declare class SpotPairsResource {
2751
+ private http;
2752
+ private basePath;
2753
+ private coinTransform;
2754
+ constructor(http: HttpClient, basePath?: string, coinTransform?: (s: string) => string);
2755
+ /** List every active spot pair. */
2756
+ list(): Promise<SpotPair[]>;
2757
+ /**
2758
+ * Get a specific spot pair by dashed symbol (e.g. `HYPE-USDC`).
2759
+ */
2760
+ get(symbol: string): Promise<SpotPair>;
2761
+ }
2762
+ /**
2763
+ * Hyperliquid Spot TWAP statuses.
2764
+ *
2765
+ * TWAP statuses come from the L4 order stream (Singapore node). They can be
2766
+ * looked up by symbol (every TWAP touching this pair) or by user wallet
2767
+ * address (every TWAP this user has placed across all spot pairs).
2768
+ *
2769
+ * Live coverage from 2026-05-05.
2770
+ *
2771
+ * @example
2772
+ * ```typescript
2773
+ * const bySymbol = await client.spot.twap.bySymbol('HYPE-USDC', {
2774
+ * start: Date.now() - 86_400_000,
2775
+ * end: Date.now(),
2776
+ * });
2777
+ * const byUser = await client.spot.twap.byUser('0xabc...', {
2778
+ * start: Date.now() - 86_400_000,
2779
+ * end: Date.now(),
2780
+ * });
2781
+ * ```
2782
+ */
2783
+ declare class SpotTwapResource {
2784
+ private http;
2785
+ private basePath;
2786
+ private coinTransform;
2787
+ constructor(http: HttpClient, basePath?: string, coinTransform?: (s: string) => string);
2788
+ /** TWAP statuses for a single spot pair. */
2789
+ bySymbol(symbol: string, params: CursorPaginationParams): Promise<CursorResponse<SpotTwapStatus[]>>;
2790
+ /** TWAP statuses for a single user wallet across every spot pair. */
2791
+ byUser(user: string, params: CursorPaginationParams): Promise<CursorResponse<SpotTwapStatus[]>>;
2792
+ }
2793
+
2655
2794
  /**
2656
2795
  * Hyperliquid exchange client
2657
2796
  *
@@ -2976,6 +3115,63 @@ declare class Hip4Client {
2976
3115
  */
2977
3116
  getL4History(coin: string, params: CursorPaginationParams): Promise<CursorResponse<any[]>>;
2978
3117
  }
3118
+ /**
3119
+ * Hyperliquid Spot exchange client.
3120
+ *
3121
+ * Access Hyperliquid Spot data through the 0xarchive API. Symbols are
3122
+ * dashed canonical (`HYPE-USDC`, `PURR-USDC`); the server resolves the
3123
+ * dashed form to Hyperliquid's wire formats (`PURR/USDC`, `@107`)
3124
+ * internally.
3125
+ *
3126
+ * Spot has no funding, no open interest, no liquidations, and no candles
3127
+ * by design (those are perpetual constructs). The SDK intentionally omits
3128
+ * those resources from the spot client.
3129
+ *
3130
+ * Coverage:
3131
+ * - Trades: from 2025-03-22 (HL S3 backfill).
3132
+ * - Orderbook, L4 diffs, L4 orders, TWAP statuses: live from 2026-05-05.
3133
+ *
3134
+ * Tier gating mirrors HIP-3: Pro+ for L4 / order lifecycle, Build+ for
3135
+ * everything else.
3136
+ *
3137
+ * @example
3138
+ * ```typescript
3139
+ * const client = new OxArchive({ apiKey: '0xa_...' });
3140
+ *
3141
+ * const orderbook = await client.spot.orderbook.get('HYPE-USDC');
3142
+ * const recentTrades = await client.spot.trades.recent('HYPE-USDC');
3143
+ * const pairs = await client.spot.pairs.list();
3144
+ *
3145
+ * // L4 (Pro+)
3146
+ * const l4 = await client.spot.l4Orderbook.get('HYPE-USDC');
3147
+ * const diffs = await client.spot.l4Orderbook.diffs('HYPE-USDC', { start, end });
3148
+ *
3149
+ * // TWAP statuses (Build+)
3150
+ * const byUser = await client.spot.twap.byUser('0xabc...', { start, end });
3151
+ * ```
3152
+ */
3153
+ declare class SpotClient {
3154
+ /** Spot pair metadata (one row per dashed symbol). */
3155
+ readonly pairs: SpotPairsResource;
3156
+ /** L2 order book snapshots (live from 2026-05-05). */
3157
+ readonly orderbook: OrderBookResource;
3158
+ /** Trade history (S3 backfill from 2025-03-22, live since). */
3159
+ readonly trades: TradesResource;
3160
+ /** Order lifecycle events (Pro+; live from 2026-05-05). */
3161
+ readonly orders: OrdersResource;
3162
+ /** L4 order book: snapshots, diffs, and checkpoint history. */
3163
+ readonly l4Orderbook: L4OrderBookResource;
3164
+ /** TWAP statuses by symbol or by user wallet (Build+). */
3165
+ readonly twap: SpotTwapResource;
3166
+ private http;
3167
+ constructor(http: HttpClient);
3168
+ /**
3169
+ * Get per-symbol data freshness across all spot data types.
3170
+ *
3171
+ * @param symbol Dashed canonical (e.g. `HYPE-USDC`).
3172
+ */
3173
+ freshness(symbol: string): Promise<CoinFreshness>;
3174
+ }
2979
3175
  /**
2980
3176
  * Lighter.xyz exchange client
2981
3177
  *
@@ -3048,9 +3244,11 @@ declare class LighterClient {
3048
3244
  /**
3049
3245
  * 0xarchive API client
3050
3246
  *
3051
- * Supports two top-level venue APIs:
3247
+ * Supports these top-level venue APIs:
3052
3248
  * - `client.hyperliquid` - Hyperliquid perpetuals (April 2023+)
3053
3249
  * - `client.hyperliquid.hip3` - Hyperliquid HIP-3 builder perps under the Hyperliquid namespace
3250
+ * - `client.hyperliquid.hip4` - Hyperliquid HIP-4 outcome markets
3251
+ * - `client.spot` - Hyperliquid Spot (trades from 2025-03-22; orderbook + L4 + TWAP live from 2026-05-05)
3054
3252
  * - `client.lighter` - Lighter.xyz perpetuals
3055
3253
  *
3056
3254
  * @example
@@ -3096,6 +3294,12 @@ declare class OxArchive {
3096
3294
  * Lighter.xyz exchange data (August 2025+)
3097
3295
  */
3098
3296
  readonly lighter: LighterClient;
3297
+ /**
3298
+ * Hyperliquid Spot exchange data. Trades backfilled from 2025-03-22;
3299
+ * orderbook, L4, and TWAP statuses live from 2026-05-05. Symbols are
3300
+ * dashed canonical (e.g. `HYPE-USDC`).
3301
+ */
3302
+ readonly spot: SpotClient;
3099
3303
  /**
3100
3304
  * Data quality metrics: status, coverage, incidents, latency, SLA
3101
3305
  */
@@ -3280,6 +3484,18 @@ declare class OxArchiveWs {
3280
3484
  subscribeHip3Liquidations(coin: string): void;
3281
3485
  /** Unsubscribe from live HIP-3 liquidation events. */
3282
3486
  unsubscribeHip3Liquidations(coin: string): void;
3487
+ /**
3488
+ * Subscribe to a Hyperliquid Spot channel for a given dashed pair.
3489
+ *
3490
+ * @param channel One of `spot_orderbook`, `spot_trades`, `spot_l4_diffs`,
3491
+ * `spot_l4_orders`, `spot_twap`. The short form (e.g. `'orderbook'`) is
3492
+ * also accepted and the `spot_` prefix is added automatically.
3493
+ * @param coin Spot dashed canonical symbol (e.g. `'HYPE-USDC'`).
3494
+ */
3495
+ subscribeSpot(channel: 'orderbook' | 'trades' | 'l4_diffs' | 'l4_orders' | 'twap' | 'spot_orderbook' | 'spot_trades' | 'spot_l4_diffs' | 'spot_l4_orders' | 'spot_twap', coin: string): void;
3496
+ /** Unsubscribe from a Hyperliquid Spot channel for a given dashed pair.
3497
+ * Accepts the short form (`'orderbook'`) or the full form (`'spot_orderbook'`). */
3498
+ unsubscribeSpot(channel: 'orderbook' | 'trades' | 'l4_diffs' | 'l4_orders' | 'twap' | 'spot_orderbook' | 'spot_trades' | 'spot_l4_diffs' | 'spot_l4_orders' | 'spot_twap', coin: string): void;
3283
3499
  /**
3284
3500
  * Subscribe to a HIP-4 channel for a given outcome coin.
3285
3501
  *
@@ -3970,7 +4186,7 @@ declare const OpenInterestSchema: z.ZodObject<{
3970
4186
  impactBidPrice?: string | undefined;
3971
4187
  impactAskPrice?: string | undefined;
3972
4188
  }>;
3973
- declare const LiquidationSideSchema: z.ZodEnum<["B", "S"]>;
4189
+ declare const LiquidationSideSchema: z.ZodEnum<["A", "B"]>;
3974
4190
  declare const LiquidationSchema: z.ZodObject<{
3975
4191
  coin: z.ZodString;
3976
4192
  timestamp: z.ZodString;
@@ -3978,7 +4194,7 @@ declare const LiquidationSchema: z.ZodObject<{
3978
4194
  liquidatorUser: z.ZodString;
3979
4195
  price: z.ZodString;
3980
4196
  size: z.ZodString;
3981
- side: z.ZodEnum<["B", "S"]>;
4197
+ side: z.ZodEnum<["A", "B"]>;
3982
4198
  markPrice: z.ZodOptional<z.ZodString>;
3983
4199
  closedPnl: z.ZodOptional<z.ZodString>;
3984
4200
  direction: z.ZodOptional<z.ZodString>;
@@ -3987,7 +4203,7 @@ declare const LiquidationSchema: z.ZodObject<{
3987
4203
  }, "strip", z.ZodTypeAny, {
3988
4204
  coin: string;
3989
4205
  timestamp: string;
3990
- side: "B" | "S";
4206
+ side: "A" | "B";
3991
4207
  price: string;
3992
4208
  size: string;
3993
4209
  liquidatedUser: string;
@@ -4000,7 +4216,7 @@ declare const LiquidationSchema: z.ZodObject<{
4000
4216
  }, {
4001
4217
  coin: string;
4002
4218
  timestamp: string;
4003
- side: "B" | "S";
4219
+ side: "A" | "B";
4004
4220
  price: string;
4005
4221
  size: string;
4006
4222
  liquidatedUser: string;
@@ -4040,32 +4256,32 @@ declare const CandleSchema: z.ZodObject<{
4040
4256
  quoteVolume?: number | undefined;
4041
4257
  tradeCount?: number | undefined;
4042
4258
  }>;
4043
- 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", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4259
+ 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", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4044
4260
  declare const WsConnectionStateSchema: z.ZodEnum<["connecting", "connected", "disconnected", "reconnecting"]>;
4045
4261
  declare const WsSubscribedSchema: z.ZodObject<{
4046
4262
  type: z.ZodLiteral<"subscribed">;
4047
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4263
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4048
4264
  coin: z.ZodOptional<z.ZodString>;
4049
4265
  }, "strip", z.ZodTypeAny, {
4050
4266
  type: "subscribed";
4051
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4267
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4052
4268
  coin?: string | undefined;
4053
4269
  }, {
4054
4270
  type: "subscribed";
4055
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4271
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4056
4272
  coin?: string | undefined;
4057
4273
  }>;
4058
4274
  declare const WsUnsubscribedSchema: z.ZodObject<{
4059
4275
  type: z.ZodLiteral<"unsubscribed">;
4060
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4276
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4061
4277
  coin: z.ZodOptional<z.ZodString>;
4062
4278
  }, "strip", z.ZodTypeAny, {
4063
4279
  type: "unsubscribed";
4064
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4280
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4065
4281
  coin?: string | undefined;
4066
4282
  }, {
4067
4283
  type: "unsubscribed";
4068
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4284
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4069
4285
  coin?: string | undefined;
4070
4286
  }>;
4071
4287
  declare const WsPongSchema: z.ZodObject<{
@@ -4087,23 +4303,23 @@ declare const WsErrorSchema: z.ZodObject<{
4087
4303
  }>;
4088
4304
  declare const WsDataSchema: z.ZodObject<{
4089
4305
  type: z.ZodLiteral<"data">;
4090
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4306
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4091
4307
  coin: z.ZodString;
4092
4308
  data: z.ZodUnknown;
4093
4309
  }, "strip", z.ZodTypeAny, {
4094
4310
  type: "data";
4095
4311
  coin: string;
4096
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4312
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4097
4313
  data?: unknown;
4098
4314
  }, {
4099
4315
  type: "data";
4100
4316
  coin: string;
4101
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4317
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4102
4318
  data?: unknown;
4103
4319
  }>;
4104
4320
  declare const WsReplayStartedSchema: z.ZodObject<{
4105
4321
  type: z.ZodLiteral<"replay_started">;
4106
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4322
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4107
4323
  coin: z.ZodString;
4108
4324
  start: z.ZodNumber;
4109
4325
  end: z.ZodNumber;
@@ -4111,14 +4327,14 @@ declare const WsReplayStartedSchema: z.ZodObject<{
4111
4327
  }, "strip", z.ZodTypeAny, {
4112
4328
  type: "replay_started";
4113
4329
  coin: string;
4114
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4330
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4115
4331
  start: number;
4116
4332
  end: number;
4117
4333
  speed: number;
4118
4334
  }, {
4119
4335
  type: "replay_started";
4120
4336
  coin: string;
4121
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4337
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4122
4338
  start: number;
4123
4339
  end: number;
4124
4340
  speed: number;
@@ -4145,18 +4361,18 @@ declare const WsReplayResumedSchema: z.ZodObject<{
4145
4361
  }>;
4146
4362
  declare const WsReplayCompletedSchema: z.ZodObject<{
4147
4363
  type: z.ZodLiteral<"replay_completed">;
4148
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4364
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4149
4365
  coin: z.ZodString;
4150
4366
  snapshots_sent: z.ZodNumber;
4151
4367
  }, "strip", z.ZodTypeAny, {
4152
4368
  type: "replay_completed";
4153
4369
  coin: string;
4154
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4370
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4155
4371
  snapshots_sent: number;
4156
4372
  }, {
4157
4373
  type: "replay_completed";
4158
4374
  coin: string;
4159
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4375
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4160
4376
  snapshots_sent: number;
4161
4377
  }>;
4162
4378
  declare const WsReplayStoppedSchema: z.ZodObject<{
@@ -4168,7 +4384,7 @@ declare const WsReplayStoppedSchema: z.ZodObject<{
4168
4384
  }>;
4169
4385
  declare const WsHistoricalDataSchema: z.ZodObject<{
4170
4386
  type: z.ZodLiteral<"historical_data">;
4171
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4387
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4172
4388
  coin: z.ZodString;
4173
4389
  timestamp: z.ZodNumber;
4174
4390
  data: z.ZodUnknown;
@@ -4176,18 +4392,18 @@ declare const WsHistoricalDataSchema: z.ZodObject<{
4176
4392
  type: "historical_data";
4177
4393
  coin: string;
4178
4394
  timestamp: number;
4179
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4395
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4180
4396
  data?: unknown;
4181
4397
  }, {
4182
4398
  type: "historical_data";
4183
4399
  coin: string;
4184
4400
  timestamp: number;
4185
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4401
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4186
4402
  data?: unknown;
4187
4403
  }>;
4188
4404
  declare const WsReplaySnapshotSchema: z.ZodObject<{
4189
4405
  type: z.ZodLiteral<"replay_snapshot">;
4190
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4406
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4191
4407
  coin: z.ZodString;
4192
4408
  timestamp: z.ZodNumber;
4193
4409
  data: z.ZodUnknown;
@@ -4195,31 +4411,31 @@ declare const WsReplaySnapshotSchema: z.ZodObject<{
4195
4411
  type: "replay_snapshot";
4196
4412
  coin: string;
4197
4413
  timestamp: number;
4198
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4414
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4199
4415
  data?: unknown;
4200
4416
  }, {
4201
4417
  type: "replay_snapshot";
4202
4418
  coin: string;
4203
4419
  timestamp: number;
4204
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4420
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4205
4421
  data?: unknown;
4206
4422
  }>;
4207
4423
  declare const WsStreamStartedSchema: z.ZodObject<{
4208
4424
  type: z.ZodLiteral<"stream_started">;
4209
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4425
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4210
4426
  coin: z.ZodString;
4211
4427
  start: z.ZodNumber;
4212
4428
  end: z.ZodNumber;
4213
4429
  }, "strip", z.ZodTypeAny, {
4214
4430
  type: "stream_started";
4215
4431
  coin: string;
4216
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4432
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4217
4433
  start: number;
4218
4434
  end: number;
4219
4435
  }, {
4220
4436
  type: "stream_started";
4221
4437
  coin: string;
4222
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4438
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4223
4439
  start: number;
4224
4440
  end: number;
4225
4441
  }>;
@@ -4245,7 +4461,7 @@ declare const TimestampedRecordSchema: z.ZodObject<{
4245
4461
  }>;
4246
4462
  declare const WsHistoricalBatchSchema: z.ZodObject<{
4247
4463
  type: z.ZodLiteral<"historical_batch">;
4248
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4464
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4249
4465
  coin: z.ZodString;
4250
4466
  data: z.ZodArray<z.ZodObject<{
4251
4467
  timestamp: z.ZodNumber;
@@ -4264,7 +4480,7 @@ declare const WsHistoricalBatchSchema: z.ZodObject<{
4264
4480
  }[];
4265
4481
  type: "historical_batch";
4266
4482
  coin: string;
4267
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4483
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4268
4484
  }, {
4269
4485
  data: {
4270
4486
  timestamp: number;
@@ -4272,22 +4488,22 @@ declare const WsHistoricalBatchSchema: z.ZodObject<{
4272
4488
  }[];
4273
4489
  type: "historical_batch";
4274
4490
  coin: string;
4275
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4491
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4276
4492
  }>;
4277
4493
  declare const WsStreamCompletedSchema: z.ZodObject<{
4278
4494
  type: z.ZodLiteral<"stream_completed">;
4279
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4495
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4280
4496
  coin: z.ZodString;
4281
4497
  snapshots_sent: z.ZodNumber;
4282
4498
  }, "strip", z.ZodTypeAny, {
4283
4499
  type: "stream_completed";
4284
4500
  coin: string;
4285
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4501
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4286
4502
  snapshots_sent: number;
4287
4503
  }, {
4288
4504
  type: "stream_completed";
4289
4505
  coin: string;
4290
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4506
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4291
4507
  snapshots_sent: number;
4292
4508
  }>;
4293
4509
  declare const WsStreamStoppedSchema: z.ZodObject<{
@@ -4329,27 +4545,27 @@ declare const WsOutcomeSettledSchema: z.ZodObject<{
4329
4545
  }>;
4330
4546
  declare const WsServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4331
4547
  type: z.ZodLiteral<"subscribed">;
4332
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4548
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4333
4549
  coin: z.ZodOptional<z.ZodString>;
4334
4550
  }, "strip", z.ZodTypeAny, {
4335
4551
  type: "subscribed";
4336
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4552
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4337
4553
  coin?: string | undefined;
4338
4554
  }, {
4339
4555
  type: "subscribed";
4340
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4556
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4341
4557
  coin?: string | undefined;
4342
4558
  }>, z.ZodObject<{
4343
4559
  type: z.ZodLiteral<"unsubscribed">;
4344
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4560
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4345
4561
  coin: z.ZodOptional<z.ZodString>;
4346
4562
  }, "strip", z.ZodTypeAny, {
4347
4563
  type: "unsubscribed";
4348
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4564
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4349
4565
  coin?: string | undefined;
4350
4566
  }, {
4351
4567
  type: "unsubscribed";
4352
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4568
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4353
4569
  coin?: string | undefined;
4354
4570
  }>, z.ZodObject<{
4355
4571
  type: z.ZodLiteral<"pong">;
@@ -4368,22 +4584,22 @@ declare const WsServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4368
4584
  type: "error";
4369
4585
  }>, z.ZodObject<{
4370
4586
  type: z.ZodLiteral<"data">;
4371
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4587
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4372
4588
  coin: z.ZodString;
4373
4589
  data: z.ZodUnknown;
4374
4590
  }, "strip", z.ZodTypeAny, {
4375
4591
  type: "data";
4376
4592
  coin: string;
4377
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4593
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4378
4594
  data?: unknown;
4379
4595
  }, {
4380
4596
  type: "data";
4381
4597
  coin: string;
4382
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4598
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4383
4599
  data?: unknown;
4384
4600
  }>, z.ZodObject<{
4385
4601
  type: z.ZodLiteral<"replay_started">;
4386
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4602
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4387
4603
  coin: z.ZodString;
4388
4604
  start: z.ZodNumber;
4389
4605
  end: z.ZodNumber;
@@ -4391,14 +4607,14 @@ declare const WsServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4391
4607
  }, "strip", z.ZodTypeAny, {
4392
4608
  type: "replay_started";
4393
4609
  coin: string;
4394
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4610
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4395
4611
  start: number;
4396
4612
  end: number;
4397
4613
  speed: number;
4398
4614
  }, {
4399
4615
  type: "replay_started";
4400
4616
  coin: string;
4401
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4617
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4402
4618
  start: number;
4403
4619
  end: number;
4404
4620
  speed: number;
@@ -4422,18 +4638,18 @@ declare const WsServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4422
4638
  current_timestamp: number;
4423
4639
  }>, z.ZodObject<{
4424
4640
  type: z.ZodLiteral<"replay_completed">;
4425
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4641
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4426
4642
  coin: z.ZodString;
4427
4643
  snapshots_sent: z.ZodNumber;
4428
4644
  }, "strip", z.ZodTypeAny, {
4429
4645
  type: "replay_completed";
4430
4646
  coin: string;
4431
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4647
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4432
4648
  snapshots_sent: number;
4433
4649
  }, {
4434
4650
  type: "replay_completed";
4435
4651
  coin: string;
4436
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4652
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4437
4653
  snapshots_sent: number;
4438
4654
  }>, z.ZodObject<{
4439
4655
  type: z.ZodLiteral<"replay_stopped">;
@@ -4443,7 +4659,7 @@ declare const WsServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4443
4659
  type: "replay_stopped";
4444
4660
  }>, z.ZodObject<{
4445
4661
  type: z.ZodLiteral<"replay_snapshot">;
4446
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4662
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4447
4663
  coin: z.ZodString;
4448
4664
  timestamp: z.ZodNumber;
4449
4665
  data: z.ZodUnknown;
@@ -4451,17 +4667,17 @@ declare const WsServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4451
4667
  type: "replay_snapshot";
4452
4668
  coin: string;
4453
4669
  timestamp: number;
4454
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4670
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4455
4671
  data?: unknown;
4456
4672
  }, {
4457
4673
  type: "replay_snapshot";
4458
4674
  coin: string;
4459
4675
  timestamp: number;
4460
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4676
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4461
4677
  data?: unknown;
4462
4678
  }>, z.ZodObject<{
4463
4679
  type: z.ZodLiteral<"historical_data">;
4464
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4680
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4465
4681
  coin: z.ZodString;
4466
4682
  timestamp: z.ZodNumber;
4467
4683
  data: z.ZodUnknown;
@@ -4469,30 +4685,30 @@ declare const WsServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4469
4685
  type: "historical_data";
4470
4686
  coin: string;
4471
4687
  timestamp: number;
4472
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4688
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4473
4689
  data?: unknown;
4474
4690
  }, {
4475
4691
  type: "historical_data";
4476
4692
  coin: string;
4477
4693
  timestamp: number;
4478
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4694
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4479
4695
  data?: unknown;
4480
4696
  }>, z.ZodObject<{
4481
4697
  type: z.ZodLiteral<"stream_started">;
4482
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4698
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4483
4699
  coin: z.ZodString;
4484
4700
  start: z.ZodNumber;
4485
4701
  end: z.ZodNumber;
4486
4702
  }, "strip", z.ZodTypeAny, {
4487
4703
  type: "stream_started";
4488
4704
  coin: string;
4489
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4705
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4490
4706
  start: number;
4491
4707
  end: number;
4492
4708
  }, {
4493
4709
  type: "stream_started";
4494
4710
  coin: string;
4495
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4711
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4496
4712
  start: number;
4497
4713
  end: number;
4498
4714
  }>, z.ZodObject<{
@@ -4506,7 +4722,7 @@ declare const WsServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4506
4722
  snapshots_sent: number;
4507
4723
  }>, z.ZodObject<{
4508
4724
  type: z.ZodLiteral<"historical_batch">;
4509
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4725
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4510
4726
  coin: z.ZodString;
4511
4727
  data: z.ZodArray<z.ZodObject<{
4512
4728
  timestamp: z.ZodNumber;
@@ -4525,7 +4741,7 @@ declare const WsServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4525
4741
  }[];
4526
4742
  type: "historical_batch";
4527
4743
  coin: string;
4528
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4744
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4529
4745
  }, {
4530
4746
  data: {
4531
4747
  timestamp: number;
@@ -4533,21 +4749,21 @@ declare const WsServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4533
4749
  }[];
4534
4750
  type: "historical_batch";
4535
4751
  coin: string;
4536
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4752
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4537
4753
  }>, z.ZodObject<{
4538
4754
  type: z.ZodLiteral<"stream_completed">;
4539
- channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4755
+ channel: z.ZodEnum<["orderbook", "trades", "candles", "liquidations", "ticker", "all_tickers", "open_interest", "funding", "lighter_orderbook", "lighter_trades", "lighter_candles", "lighter_open_interest", "lighter_funding", "lighter_l3_orderbook", "hip3_orderbook", "hip3_trades", "hip3_candles", "hip3_open_interest", "hip3_funding", "hip3_liquidations", "hip4_orderbook", "hip4_trades", "hip4_open_interest", "spot_orderbook", "spot_trades", "spot_l4_diffs", "spot_l4_orders", "spot_twap", "l4_diffs", "l4_orders", "hip3_l4_diffs", "hip3_l4_orders", "hip4_l4_diffs", "hip4_l4_orders"]>;
4540
4756
  coin: z.ZodString;
4541
4757
  snapshots_sent: z.ZodNumber;
4542
4758
  }, "strip", z.ZodTypeAny, {
4543
4759
  type: "stream_completed";
4544
4760
  coin: string;
4545
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4761
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4546
4762
  snapshots_sent: number;
4547
4763
  }, {
4548
4764
  type: "stream_completed";
4549
4765
  coin: string;
4550
- channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4766
+ channel: "orderbook" | "trades" | "candles" | "liquidations" | "ticker" | "all_tickers" | "open_interest" | "funding" | "lighter_orderbook" | "lighter_trades" | "lighter_candles" | "lighter_open_interest" | "lighter_funding" | "lighter_l3_orderbook" | "hip3_orderbook" | "hip3_trades" | "hip3_candles" | "hip3_open_interest" | "hip3_funding" | "hip3_liquidations" | "hip4_orderbook" | "hip4_trades" | "hip4_open_interest" | "spot_orderbook" | "spot_trades" | "spot_l4_diffs" | "spot_l4_orders" | "spot_twap" | "l4_diffs" | "l4_orders" | "hip3_l4_diffs" | "hip3_l4_orders" | "hip4_l4_diffs" | "hip4_l4_orders";
4551
4767
  snapshots_sent: number;
4552
4768
  }>, z.ZodObject<{
4553
4769
  type: z.ZodLiteral<"stream_stopped">;
@@ -5506,7 +5722,7 @@ declare const LiquidationArrayResponseSchema: z.ZodObject<{
5506
5722
  liquidatorUser: z.ZodString;
5507
5723
  price: z.ZodString;
5508
5724
  size: z.ZodString;
5509
- side: z.ZodEnum<["B", "S"]>;
5725
+ side: z.ZodEnum<["A", "B"]>;
5510
5726
  markPrice: z.ZodOptional<z.ZodString>;
5511
5727
  closedPnl: z.ZodOptional<z.ZodString>;
5512
5728
  direction: z.ZodOptional<z.ZodString>;
@@ -5515,7 +5731,7 @@ declare const LiquidationArrayResponseSchema: z.ZodObject<{
5515
5731
  }, "strip", z.ZodTypeAny, {
5516
5732
  coin: string;
5517
5733
  timestamp: string;
5518
- side: "B" | "S";
5734
+ side: "A" | "B";
5519
5735
  price: string;
5520
5736
  size: string;
5521
5737
  liquidatedUser: string;
@@ -5528,7 +5744,7 @@ declare const LiquidationArrayResponseSchema: z.ZodObject<{
5528
5744
  }, {
5529
5745
  coin: string;
5530
5746
  timestamp: string;
5531
- side: "B" | "S";
5747
+ side: "A" | "B";
5532
5748
  price: string;
5533
5749
  size: string;
5534
5750
  liquidatedUser: string;
@@ -5556,7 +5772,7 @@ declare const LiquidationArrayResponseSchema: z.ZodObject<{
5556
5772
  data: {
5557
5773
  coin: string;
5558
5774
  timestamp: string;
5559
- side: "B" | "S";
5775
+ side: "A" | "B";
5560
5776
  price: string;
5561
5777
  size: string;
5562
5778
  liquidatedUser: string;
@@ -5577,7 +5793,7 @@ declare const LiquidationArrayResponseSchema: z.ZodObject<{
5577
5793
  data: {
5578
5794
  coin: string;
5579
5795
  timestamp: string;
5580
- side: "B" | "S";
5796
+ side: "A" | "B";
5581
5797
  price: string;
5582
5798
  size: string;
5583
5799
  liquidatedUser: string;
@@ -6220,4 +6436,4 @@ type ValidatedCandle = z.infer<typeof CandleSchema>;
6220
6436
  type ValidatedLiquidation = z.infer<typeof LiquidationSchema>;
6221
6437
  type ValidatedWsServerMessage = z.infer<typeof WsServerMessageSchema>;
6222
6438
 
6223
- 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, type Hip4AggregatedOi, Hip4Client, type Hip4ListOutcomesParams, type Hip4Outcome, type Hip4OutcomeAggregate, type Hip4OutcomeSideSpec, HyperliquidClient, type Incident, type IncidentSeverityValue, type IncidentStatusValue, type IncidentsResponse, type Instrument, InstrumentArrayResponseSchema, InstrumentResponseSchema, InstrumentSchema, type InstrumentType, InstrumentTypeSchema, type L2Level, type L2OrderBookParams, L2OrderBookResource, type L4Checkpoint, type L4Diff, type L4Order, L4OrderBookReconstructor, 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 SiweChallenge, 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 Web3ApiKey, type Web3KeysList, type Web3PaymentRequired, type Web3RevokeResult, type Web3SignupResult, type Web3SubscribeResult, 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 WsL4Batch, type WsL4Snapshot, type WsOptions, type WsOutcomeSettled, WsOutcomeSettledSchema, 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 };
6439
+ 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, type Hip4AggregatedOi, Hip4Client, type Hip4ListOutcomesParams, type Hip4Outcome, type Hip4OutcomeAggregate, type Hip4OutcomeSideSpec, HyperliquidClient, type Incident, type IncidentSeverityValue, type IncidentStatusValue, type IncidentsResponse, type Instrument, InstrumentArrayResponseSchema, InstrumentResponseSchema, InstrumentSchema, type InstrumentType, InstrumentTypeSchema, type L2Level, type L2OrderBookParams, L2OrderBookResource, type L4Checkpoint, type L4Diff, type L4Order, L4OrderBookReconstructor, 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 SiweChallenge, type SlaActual, type SlaParams, type SlaResponse, type SlaTargets, SpotClient, type SpotPair, type SpotTwapStatus, 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 Web3ApiKey, type Web3KeysList, type Web3PaymentRequired, type Web3RevokeResult, type Web3SignupResult, type Web3SubscribeResult, 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 WsL4Batch, type WsL4Snapshot, type WsOptions, type WsOutcomeSettled, WsOutcomeSettledSchema, 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 };