export type LtWsMessage = { channel?: string; type: string; }; export type LtWsPingMessage = LtWsMessage & { type: 'ping'; }; export type LtWsMarketStats = { market_id: number; index_price: string; mark_price: string; mid_price: string; open_interest: string; last_trade_price: string; current_funding_rate: string; funding_rate: string; funding_timestamp: number; daily_base_token_volume: string; daily_quote_token_volume: string; daily_price_change: string; }; export type LtWsMarketStatsAllMessage = LtWsMessage & { type: 'subscribed/market_stats' | 'update/market_stats'; market_stats?: LtWsMarketStats | Record; }; export type LtWsSpotMarketStats = { market_id: number; symbol: string; index_price: string; mid_price: string; best_ask_price: string; best_bid_price: string; last_trade_price: string; daily_base_token_volume: number; daily_quote_token_volume: number; daily_price_low: number; daily_price_high: number; daily_price_change: number; }; export type LtWsSpotMarketStatsAllMessage = LtWsMessage & { type: 'subscribed/spot_market_stats' | 'update/spot_market_stats'; spot_market_stats?: LtWsSpotMarketStats | Record; }; export type LtWsOrderBookLevel = { price: string; size: string; }; export type LtWsOrderBook = { asks: LtWsOrderBookLevel[]; bids: LtWsOrderBookLevel[]; offset?: number; }; export type LtWsOrderBookMessage = LtWsMessage & { type: 'subscribed/order_book' | 'update/order_book'; order_book: LtWsOrderBook; }; export type LtWsTrade = { trade_id: number; trade_id_str?: string; market_id?: number; size: string; price: string; is_maker_ask: boolean; timestamp: number; }; export type LtWsTradeMessage = LtWsMessage & { type: 'subscribed/trade' | 'update/trade'; trades?: LtWsTrade[]; }; export type LtWsAccountAllOrdersMessage = LtWsMessage & { type: 'subscribed/account_all_orders' | 'update/account_all_orders'; orders?: Record | unknown[]; data?: { orders?: Record | unknown[]; }; }; export type LtWsAccountAllTradesMessage = LtWsMessage & { type: 'subscribed/account_all_trades' | 'update/account_all_trades'; trades?: Record | unknown[]; total_volume?: number; monthly_volume?: number; weekly_volume?: number; daily_volume?: number; data?: { trades?: Record | unknown[]; }; }; export type LtWsUserStatsMessage = LtWsMessage & { stats?: { collateral?: string; portfolio_value?: string; available_balance?: string; cross_stats?: { collateral: string; portfolio_value: string; available_balance: string; }; }; }; export type LtWsAccountAllPositionsMessage = LtWsMessage & { type: 'subscribed/account_all_positions' | 'update/account_all_positions'; positions?: Record; shares?: unknown[]; last_funding_round?: Record; last_funding_discount?: Record; data?: { positions?: Record; }; }; //# sourceMappingURL=ws.d.ts.map