import type { HlClearinghouseState, HlSpotBalance } from './account.js'; import type { HlCandle, HlL2Book } from './asset.js'; import type { HlUserFill } from './fill.js'; type HlWsNumberString = string | number; export interface HlWsOrder { order: { coin: string; side: string; limitPx: string; sz: string; oid: number; timestamp: number; origSz: string; cloid?: string; }; status: string; statusTimestamp: number; } export type HlWsPerpAssetCtx = { coin: string; funding: string; openInterest: string; dayNtlVlm: string; prevDayPx: string; markPx: string; midPx: string | null; oraclePx: string; }; export type HlWsPerpAssetCtxPayload = Partial; export type HlWsAllDexsAssetCtxsData = { assetCtxs?: [string, HlWsPerpAssetCtx[]][]; ctxs?: [string, HlWsPerpAssetCtxPayload[]][]; }; export type HlWsPacData = [string, HlWsPerpAssetCtxPayload[]][]; export type HlWsMessage = { channel: string; data: unknown; }; export type HlWsFastAssetCtx = { markPx?: string; midPx?: string | null; }; export type HlWsSpotAssetCtx = { dayNtlVlm?: HlWsNumberString; prevDayPx?: HlWsNumberString; markPx?: HlWsNumberString; midPx?: HlWsNumberString | null; dayBaseVlm?: HlWsNumberString; circulatingSupply?: HlWsNumberString; }; export type HlWsActiveAssetCtxData = { coin: string; ctx: Partial>; }; export type HlWsActiveSpotAssetCtxData = { coin: string; ctx: HlWsSpotAssetCtx; }; export type HlWsSacData = Record; export type HlWsL2BookData = HlL2Book & { coin: string; }; export type HlWsL2Data = { s?: HlL2Book & { coin: string; }; c?: string; u?: HlWsCompressedL2Data; }; export type HlWsCompressedL2Level = { p: string; s: string; }; export type HlWsCompressedL2Data = { c: string; t: number; l: [HlWsCompressedL2Level[], HlWsCompressedL2Level[]]; r?: [ Array, Array ]; }; export type HlWsCandleData = HlCandle & { T: number; s: string; i: string; n: number; }; export type HlWsTrade = { coin: string; side: string; px: string; sz: string; time: number; tid?: number; hash?: string; }; export type HlWsUserFillsData = { isSnapshot: boolean; user: string; fills: HlUserFill[]; }; export type HlWsAllDexsClearinghouseStateData = { user: string; clearinghouseStates: [ string, Pick ][]; }; export type HlWsSpotStateData = { user: string; spotState: { balances: HlSpotBalance[]; }; }; export {}; //# sourceMappingURL=ws.d.ts.map