Add roll leg avg/TP profit display and reduce instance nav flicker

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-23 23:42:02 +08:00
parent 54ba412d1d
commit e03863d780
12 changed files with 530 additions and 24 deletions
+5
View File
@@ -158,6 +158,11 @@ def install_strategy_trend(app: Flask, repo_root: str, app_module: Any = None, *
app.extensions["strategy_trend_cfg"] = cfg
register_trend_routes(app, cfg)
_patch_hub_monitor_enrich(app, cfg)
roll_cfg = app.extensions.get("strategy_roll_cfg")
if isinstance(roll_cfg, dict):
from strategy_roll_ui_lib import patch_roll_hub_enrich
patch_roll_hub_enrich(app, roll_cfg)
_patch_hub_trend_views(app)
@app.context_processor