Repository navigation
Add exact derivative research accounts, lifecycle and daily replay - #27
Merged
Merged
Conversation
PureSaber
commented
Oct 10, 2026
PureSaber
left a comment
Owner
Author
There was a problem hiding this comment.
Self-review completed (not an independent reviewer): exact-money accounting, basket rollback/idempotency, availability-to-next-bar ordering, settlement and option lifecycle boundaries reviewed. All 382 regression tests pass; GitHub Python 3.10/3.11/3.12 and CodeQL pass at this head. Shared derivative reports include explicit synthetic/retrospective provenance, declared modeling assumptions, hashes and per-currency balance verification. No live orders or strategy profitability certification.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a single-currency derivative research account backed by the existing exact ledger: atomic baskets, tick slippage and fees, futures variation settlement, premium-funded long/short options, cash expiry and explicit physical exercise/assignment. Declared per-contract margin is included in snapshots; existing cash-equity restrictions remain unchanged.
Adds causal daily replay, transaction exports, responsive reports and artifact/hash/balance verification. Missing held-position prices, zero-liquidity fills, missing settlement/fixings and maintenance breaches fail explicitly. No live order API, SPAN, automatic optimal exercise or negative-price execution is claimed.
Validation: locked dependencies installed and pip check passed; 382 tests passed, overall branch-inclusive coverage 94.04%, ledger pure branches 92.36%, all existing core branch gates >=90%; Ruff check/format passed. Tests cover short reversals, exact multipliers, expiry, physical delivery, margin, atomic rollback, causality and report tampering.
Dependency: quant-data-kit immutable commit 3b1684dfb1ecddd0c7df95f1fbac9b21119e9f55 (PR #36).