feat: 温区自适应前端横幅+router v5+overview API——概览页置顶显示温区/温度/激活策略, server.py /api/overview 返回 regime_weights, strategy_router v5 动态策略库

This commit is contained in:
hmo
2026-08-13 10:55:46 +08:00
parent 41bf9ffde9
commit dec30896c3
3 changed files with 114 additions and 81 deletions
+2
View File
@@ -622,6 +622,8 @@ def api_overview():
"cash": cash, "position_pct": position_pct, "total_pnl": total_pnl,
"top_movers": top_movers, "market": market,
"alerts": _load_json(DATA_DIR / "alerts.json", [])[:10],
# 2026-08-13 温区自适应:概览页横幅数据源
"regime_weights": _load_json(DATA_DIR / "strategy_weights.json", None),
"updated_at": summary.get("updated_at", ""),
})
except Exception: