Skip to content

Reject illegal fills before mutating order quantities - #12

Merged
dev-belly merged 1 commit into
mainfrom
fix/rejected-fill-state-2026-10-11
Oct 11, 2026
Merged

dev-belly merged 1 commit into
mainfrom
fix/rejected-fill-state-2026-10-11

Conversation

@dev-belly

Copy link
Copy Markdown
Owner

Applying a partial or full fill to a new, cancelled, rejected or expired order raised OrderStateError after incrementing filled_base, leaving rejected operations in the order's accounting state. Validate the state transition before committing the new filled quantity.

Validation: all eight new invalid-state/quantity regressions fail on the baseline. The fixed tree passes 867 tests; 152 tests are skipped locally because the optional C++ extension is not built on this Windows environment. Ruff/format for 135 files, mypy for 101 files, dependency compatibility and the eight-strategy CLI demo pass. GitHub CI retains Python, C++ differential and sanitizer coverage.

@dev-belly
dev-belly marked this pull request as ready for review October 11, 2026 04:25
@dev-belly
dev-belly merged commit bb27f55 into main Oct 11, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant