lawsynth/crates/lawsynth-quant
caelum0x 02658c6dd1 Merge branch 'feat/quant-portfolio-rung' (single-currency multi-instrument Portfolio)
Adds a Portfolio contract to lawsynth-quant: aggregates exact cost basis,
mark-to-market value, gross notional, and unrealized P&L across an ordered
book of Lots using Money's overflow-checked integer algebra. Rejects
foreign-currency lots and unpriced instruments rather than silently
defaulting. Deterministic LSQF1 byte encoding with a strict decoder.
5 new tests (18 total pass); reviewed: sound, scope-limited, well-tested.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-19 13:41:32 +03:00
..