v0.6.0 — market-integrity release
The market-integrity release: a research-grounded threat model and the defenses it prioritized, plus durable persistence. Try it live: https://intrepidkarthi.github.io/orderbook/
Highlights
- Durable WAL (
pkg/wal) — write-ahead command log + snapshots + torn-tail-safe recovery. - Threat model (docs/THREAT-MODEL.md) — 27 real order-book attacks → detection → defense → core-vs-layer, each tied to a named enforcement case.
- In-core pre-trade risk controls — fat-finger/dust caps, per-account order cap, minimum resting time, client-order-id idempotency, mark-price step + depth bounds, chunked liquidation, timed band-breach pause, randomized iceberg peaks, notional-overflow guard,
HALTED/RESUMEDevents. - Surveillance (
pkg/surveillance) — order-to-trade ratio, marking-the-close, ramping, pinging, and cross-book detectors. - Call-auction session (
pkg/auction) — open/close/recovery with a replay-safe randomized close. - Enforcing gateway (
pkg/gateway) — token-bucket rate gate + taker speed bump.
Breaking
Engine.SetMarkPricenow returnserror(rejects a mark update violatingMaxMarkStep/MinMarkDepth).
Full notes: CHANGELOG.md