fix: pass ALT layer scores into BTC factors for frontend display

This commit is contained in:
root 2026-03-03 15:32:04 +00:00
parent f87edc0339
commit 2a9e4db756

View File

@ -1009,6 +1009,11 @@ class SymbolState:
"spot_perp_div": spot_perp_div,
"whale_cvd_ratio": whale_cvd,
"alt_score_ref": alt_result["score"],
# 透传ALT层分数供前端展示
"direction": (alt_result.get("factors") or {}).get("direction"),
"crowding": (alt_result.get("factors") or {}).get("crowding"),
"environment": (alt_result.get("factors") or {}).get("environment"),
"auxiliary": (alt_result.get("factors") or {}).get("auxiliary"),
},
})