Repository navigation
fix: harden trading recovery and research reports; optimize runtime reads - #403
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]>
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/professional_report/features/equity.py # backend_api_python/app/research/workflows.py # backend_api_python/tests/test_professional_report_builder.py
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
…emails Persist definitive order failure streaks and portfolio batch outcomes, send deduplicated alerts across opted-in channels, and render transactional emails using localized monochrome templates and configured branding. Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]> # Conflicts: # backend_api_python/app/services/strategy_v2/live_execution.py # backend_api_python/app/services/trading_executor.py # backend_api_python/tests/test_strategy_v2_order_gateway.py # docs/trading/LIVE_TRADING_SAFETY.md # docs/trading/LIVE_TRADING_SAFETY_CN.md
Signed-off-by: TIANHE <[email protected]>
Use the canonical strategy_name column for automatic-stop and rebalance notifications, honor explicit stop-and-close requests, and exercise the production schema and notification delivery paths in regression tests. Signed-off-by: TIANHE <[email protected]>
Keep order sizing aligned with the deployment ledger across restarts. Revalue positions atomically with fills and derive live floating PnL from current quantities so stale residual rows cannot inflate equity. Preserve real small holdings and add cross-path regression coverage. 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]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]>
Signed-off-by: TIANHE <[email protected]> # Conflicts: # backend_api_python/tests/integration/test_runtime_readiness.py
…sions 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.



Summary
Root cause
History requests waited for external venue calls and repeatedly returned complete histories. Runtime health reads processed historical rows where only current/latest records were needed.
Verification
Deployment and compatibility
Remaining scope
Complete ledger context is still read for accounting before pagination; this is not constant-time SQL pagination. Historical backtest curve compaction and reusable accounting summaries are separate follow-ups.
Additional changes - 2026-11-23
Trading recovery (1c48928)
Research reports (5b1af76)
Verification for this update
Companion commits
Deployment and remaining risks