Module Algostream_analytics.Tick_event

Normalized tick record bridging bus payloads (Market_tick / Trade_print) into the analytics pipeline. Field set is intentionally narrower than the bus payloads: only what the analytics layer actually uses, so the SPSC handoff is small and predictable.

type kind =
  1. | Market
  2. | Trade
type t = {
  1. symbol : string;
  2. timestamp_ns : int64;
  3. price : float;
  4. size : float;
  5. bid : float;
  6. ask : float;
  7. kind : kind;
}

Convert from the bus payload. Returns None for payload variants we don't process.