Expand description
Local orderbook helpers (Go orderbook package parity).
Structs§
- Subscription
- Managed orderbook stream with snapshot prefetch and sequence-checked deltas.
Functions§
- apply_
delta - Apply a delta; returns
(new_seq, needs_refresh). - apply_
side_ delta - bucket_
side - Aggregate levels into executable-side-safe price buckets.
- build_
orderbook_ data - Render the current in-memory book as
OrderbookData. - levels_
from_ orderbook_ side - Build a book side from decoded
OrderbookLevelrows. - levels_
from_ pairs - Build a book side from
(price_ticks, qty_scaled)pairs (zero qty skipped). - parse_
bucket_ ticks - Parse a bucket string into a positive tick size. Empty means no bucketing.