Expand description
Parsers from Lighter streaming payloads to Nautilus domain types.
Functionsยง
- account_
balance_ from_ lighter_ asset - Builds the per-asset [
AccountBalance] for one Lighter wallet entry. - build_
unified_ account_ state - Assembles the unified [
AccountState] from already-parsed components. - margin_
balance_ from_ user_ stats - Builds the cross-margin [
MarginBalance] from auser_statsframe. - parse_
ws_ bar - Parses a Lighter WebSocket candle into a Nautilus [
Bar] withts_eventset to the bar open. - parse_
ws_ fill_ report - Parses a Lighter account-trade payload into a [
FillReport] when the trade involves the supplied account. - parse_
ws_ funding_ rate_ update - Parses a Lighter perpetual market-stat update into a funding-rate update.
- parse_
ws_ index_ price_ update - Parses a Lighter perpetual market-stat update into an index price update.
- parse_
ws_ mark_ price_ update - Parses a Lighter perpetual market-stat update into a mark price update.
- parse_
ws_ order_ book_ deltas - Parses a Lighter order book update into Nautilus deltas.
- parse_
ws_ order_ book_ depth10 - Parses a full Lighter order book payload into a Nautilus [
OrderBookDepth10]. - parse_
ws_ order_ status_ report - Parses a Lighter account-stream order payload into an [
OrderStatusReport]. - parse_
ws_ position_ status_ report - Parses a Lighter position payload into a [
PositionStatusReport]. - parse_
ws_ quote_ tick - Parses a Lighter ticker stream payload into a Nautilus [
QuoteTick]. - parse_
ws_ spot_ index_ price_ update - Parses a Lighter spot market-stat update into an index price update.
- parse_
ws_ trade_ tick - Parses a Lighter trade stream item into a Nautilus [
TradeTick].