fix: 币种规范v3对齐——个股存HKD原币,汇总才转CNY。import_holding_xls存HKD原值;strategy_lifecycle删拉价即转CNY(价格比较与行情HKD原值单位一致);strategy_summary删硬编码0.867走get_hk_rate;mo_models validate对齐v3;refresh_macro_context修恒指前缀szHSI→hkHSI

This commit is contained in:
hmo
2026-08-14 14:41:58 +08:00
parent 068bf1d290
commit 442427b214
5 changed files with 22 additions and 23 deletions
+2 -1
View File
@@ -1,13 +1,14 @@
#!/usr/bin/env python3
"""生成策略评估摘要"""
from mo_data import read_decisions, read_portfolio
from mo_models import get_hk_rate
dec = read_decisions()
pf = read_portfolio()
holdings = pf.get('holdings', [])
cash = pf.get('cash', 321271)
hk_rate = 0.867
hk_rate = get_hk_rate()
code_to_h = {h['code']: h for h in holdings}
decisions = dec.get('decisions', [])