Module market
Expand description
Typed market data payloads (JOURNAL_SPEC §8.4).
Each payload struct includes venue_id and instrument_id fields directly,
in addition to the envelope-level fields. This allows market data to be
self-describing when consumed outside the envelope (e.g., by feed processors
or strategy contexts).
Structs§
- L2Update
- A level-2 order book update (delta or snapshot).
- Liquidation
Event - Observed liquidation event from a venue.
- Ohlcv
Bar - A completed OHLCV bar (candlestick) from a venue.
- Trade
- A single trade observed from a venue.
Enums§
- Market
Data - Typed market data payload. Serializes with an internal
market_typetag so the journal record includes an explicit discriminant per JOURNAL_SPEC §8.4. - Market
Data Type - Discriminant for
MarketDatavariants, used to declare which market data types a strategy consumes (see [Strategy::market_types]).