Implement Sweep & Cross UMDF trade subtype#527
Merged
Conversation
6835e82 to
f3ab3cc
Compare
Part of #501. Mark sweep-phase AgainstBook UMDF Trade_53 frames with TrdSubType=SWEEP_TRADE (109) while preserving NULL for regular trades. Update GAP-30 compliance notes and tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Scope sweep UMDF tagging and filled-quantity accumulation to trades whose aggressor identity matches the sweep order. This prevents triggered-stop cascades emitted during SubmitCrossSweep from receiving TrdSubType=SWEEP_TRADE or shrinking the phase-2 residual. Also clear sweep state in a finally block if the engine throws. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Classify sweep-phase trades by the engine-assigned aggressor OrderId instead of client ClOrdId/firm so triggered stops with reused client identities cannot be tagged or accumulated as sweep fills. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
f3ab3cc to
7a13f9e
Compare
This was referenced Jun 20, 2026
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.
Part of #501 (GAP-30).
Summary
Notes
Validation