Skip to content

Fix PartialFillExchange exact-qty fills and local partial-fill accounting - #323

Open
vedjaw wants to merge 1 commit into
nkaz001:masterfrom
vedjaw:fix/partial-fill-exact-qty-and-local-accounting
Open

Fix PartialFillExchange exact-qty fills and local partial-fill accounting#323
vedjaw wants to merge 1 commit into
nkaz001:masterfrom
vedjaw:fix/partial-fill-exact-qty-and-local-accounting

Conversation

@vedjaw

@vedjaw vedjaw commented Aug 1, 2026

Copy link
Copy Markdown

Summary

Test plan

  • CI: existing backtest / PartialFillExchange tests
  • Manual: resting order partially filled under probabilistic queue models — local position/balance should move on each partial, and exact filled_qty == leaves_qty should complete without error

Fixes #312
Fixes #316

Made with Cursor

…ting

Treat filled_qty == leaves_qty as a complete fill (>=) so InvalidOrderStatus
is not raised when the queue model reports an exact fill (nkaz001#312). Apply
PartiallyFilled responses on the local side so position/balance track
incremental exec_qty (nkaz001#316).

Co-authored-by: Cursor <cursoragent@cursor.com>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant