a8d54187264cc27c03df0f4ee137cdb3ed224b7c
问题:price_monitor每2分钟更新个股价,但不更新 total_market_value/total_assets/cash/position_pct, 这些字段停留在import_holding_xls快照值,已严重过期。 导致报告显示错误的总资产和仓位。 修复: - 每次更新个股价后,实时重算 total_market_value = sum(shares*price) - cash 从 stale_report(Dad截图确认的可用现金)同步 - total_assets = market_value + available_cash + freeze - 避免价格无变化时不触发更新(timeout fallback保留)
Description
No description provided
Languages
Python
94.2%
HTML
5.8%