Skip to main content

Module messages

Module messages 

Source
Expand description

Wire frames and handler-output message types for Lighter streams.

Structs§

LighterAsset
LighterMarketStats
LighterPoolShares
LighterPosition
LighterSpotMarketStats
LighterTicker
LighterUserStats
Body of the user_stats frame. Top-level equity numbers mirror total_stats; cross_stats reports cross-margin equity only.
LighterUserStatsScoped
Inner shape of the user_stats.stats.cross_stats and .total_stats substructs. Every field is a stringified decimal on the wire and denominated in USDC.
LighterWsCandle
LighterWsOrderBook
LighterWsSendTx
tx_info is carried as Box<RawValue> so the typed-tx renderer in crate::signing::tx::TxInfoJson can hand the wrapper a pre-rendered JSON string without paying for a parse-into-Value round-trip on every exec command. The outer LighterWsRequest serialization emits the raw source bytes inline. PartialEq is not derived because RawValue doesn’t implement it.

Enums§

AccountStream
Identifier for one of the five account-scoped WebSocket streams the execution client subscribes to on connect.
ExecutionReport
Wrapper for the raw venue payloads emitted on Lighter account streams.
LighterMarketSelection
LighterMarketStatsPayload
LighterSpotMarketStatsPayload
LighterWsChannel
LighterWsChannelKind
Wire labels for the Lighter WebSocket channel taxonomy.
LighterWsFrame
LighterWsRequest
NautilusWsMessage
Inbound message produced by the Lighter feed handler and consumed by the data and execution clients.
SendTxRejectionSource
Origin of a Lighter sendTx rejection signal.