import_holding_xls: 支持截图真实数字覆盖

regenerate_all 会覆盖 portfolio.json,所以导入流程改为:
1. 先更新 SQLite holdings 表
2. 再跑 regenerate_all(读 SQLite,写 decisions+portfolio)
3. 然后用真实数字覆盖 portfolio.json 汇总字段
4. 重建决策树

支持 --cash --total --mv 传入截图真实数字
用法:python3 import_holding_xls.py --cash 20230 --total 1008860 --mv 988512
This commit is contained in:
知微
2026-06-24 11:29:53 +08:00
parent e2646c36cb
commit eb294f05a5
5 changed files with 1135 additions and 938 deletions
+896 -621
View File
File diff suppressed because it is too large Load Diff