Repository navigation
fix: stabilize broker exits, group partial fills, and preserve localized asset names - #436
Merged
Merged
Conversation
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]> # Conflicts: # backend_api_python/app/routes/community.py
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
(cherry picked from commit 76ea213) Signed-off-by: TIANHE <[email protected]>
…paths Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]> # Conflicts: # docs/trading/LIVE_TRADING_SAFETY.md # docs/trading/LIVE_TRADING_SAFETY_CN.md
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]> # Conflicts: # docs/trading/LIVE_TRADING_SAFETY.md # docs/trading/LIVE_TRADING_SAFETY_CN.md
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
… failures Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
|
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.



Broker equity allocations recorded as hkstock/usstock were omitted by spot-only exit checks, causing valid holdings to be capped to zero and repeatedly rejected. Match equivalent equity lanes within the same account and symbol, defer unchanged recoverable exit failures for 60 seconds, and durably deduplicate failure notifications. Retain the Forthright stock PnL and sanitized broker rejection diagnostics already in this PR.
Expose optional order-level trade summaries with expandable original fills. Aggregate quantity, weighted price and fees without modifying execution ledgers or FIFO accounting. Suppress zero-quantity fill logs while retaining fee reconciliation.
Keep Chinese and English catalog names separate from exchange rule synchronization. Search active aliases and simplified/traditional Chinese consistently, and localize catalog/watchlist responses without changing asset identities. Optional HK name enrichment cannot create tradable instruments or invalidate successful rule synchronization.
Validation: current-head Backend CI passed both full test shards, PostgreSQL transactional accounting, release gates, lint, structure, dependency lock, repository consistency and Compose validation. The full test shards passed 7,358 tests; accounting/release gates passed another 159 tests. Focused PostgreSQL catalog migration and concurrent exit-notification tests also passed locally. Companion frontend: 921 unit tests passed, production build passed, ESLint zero errors with existing warnings, and locale completeness passed. OpenAPI generation consistency and SonarCloud return-flow findings were corrected and pushed; OpenAPI CI now passes and SonarCloud reports no new open issues. CodeQL and dependency/source security audit passed; the full-history secret scan remains in progress.
Deployment: install the updated requirements.lock (opencc-python-reimplemented==0.1.7), run the registered 20261203_catalog_names.sql migration, and deploy API/trading workers together with the companion frontend. PostgreSQL migration tests are enabled in CI. No live orders were submitted. US automated strategies remain regular-session-only; extended and overnight execution are not enabled by this PR.