总资产权威数据源统一修复
问题:总资产每次报告重新计算,数字不一致。
根因:cash字段错误(92664→73759),stale_push_wlin二次×0.866,
报告各算各的。
修复:
1. portfolio.json cash 修正为Dad截图确认值73,758.85
2. price_monitor 每轮写入 total_mv + total_assets 到portfolio.json
(从此所有报告只读这个字段,不自算)
3. stale_push_wlin 删除重复的 hmv *= 0.866(数据已CNY)
4. portfolio.json 加 currency: CNY 标记防混淆
5. 日志记录本次修复
This commit is contained in:
+8
-4
@@ -666,12 +666,12 @@
|
||||
"change_pct": 1.62
|
||||
}
|
||||
],
|
||||
"cash": 92664.2,
|
||||
"cash": 73758.85,
|
||||
"total_market_value": 1107670.0,
|
||||
"total_assets": 1239815.6,
|
||||
"total_assets": 929069.85,
|
||||
"total_pl": 0,
|
||||
"position_pct": 88.25,
|
||||
"updated_at": "2026-06-29 15:52",
|
||||
"updated_at": "2026-06-29 22:20",
|
||||
"source": "/home/hmo/stocks/holding.xls",
|
||||
"frozen_cash": 39481.4,
|
||||
"available_cash": 73758.85,
|
||||
@@ -688,5 +688,9 @@
|
||||
"amount": 18920.0,
|
||||
"timestamp": "2026-06-29 10:43"
|
||||
}
|
||||
]
|
||||
],
|
||||
"total_mv": 855311.0,
|
||||
"note": "cash fixed from screenshot 6/29, prices=CNY",
|
||||
"currency": "CNY",
|
||||
"last_verified_at": "2026-06-29 22:20"
|
||||
}
|
||||
Reference in New Issue
Block a user