fix: 全面系统修复 — delivery目标修正 + 脚本同步 + refresh_mtf_cache import修复 + clean_watchlist硬编码修复
修复清单: - cron delivery修正:10个job从deliver=origin/all改为local,消除推送错误 - refresh_mtf_cache.py:替换strategy_lifecycle.PORTFOLIO_PATH导入为mofin_db直接读DB - clean_watchlist.py:修复mo_data导入名错误和JSON硬编码路径 - MoFin/scripts/与profile scripts互相补全,双向sync到一致 - price_monitor.py:现金源从portfolio_summary表改为cash_log(Dad确认的现金权威) - 更新watchlist.json加入000850华茂股份
This commit is contained in:
+120
-62
@@ -5,162 +5,220 @@
|
||||
"name": "腾讯",
|
||||
"shares": 100,
|
||||
"cost": 443.13,
|
||||
"price": 446.4,
|
||||
"position_pct": null,
|
||||
"added_at": null,
|
||||
"is_active": 1,
|
||||
"closed_at": null,
|
||||
"close_pnl": null,
|
||||
"price": 447.4,
|
||||
"market_value": 39063.0,
|
||||
"change_pct": 3.53,
|
||||
"currency": "HKD",
|
||||
"position_pct": null
|
||||
"change_pct": 3.76,
|
||||
"currency": "HKD"
|
||||
},
|
||||
{
|
||||
"code": "01088",
|
||||
"name": "中国神华",
|
||||
"shares": 500,
|
||||
"cost": 45.89,
|
||||
"price": 40.72,
|
||||
"position_pct": 2.14,
|
||||
"added_at": null,
|
||||
"is_active": 1,
|
||||
"closed_at": null,
|
||||
"close_pnl": null,
|
||||
"price": 40.66,
|
||||
"market_value": 17575.0,
|
||||
"change_pct": 1.8,
|
||||
"currency": "HKD",
|
||||
"position_pct": 2.14
|
||||
"change_pct": 1.65,
|
||||
"currency": "HKD"
|
||||
},
|
||||
{
|
||||
"code": "01211",
|
||||
"name": "比亚迪股份",
|
||||
"shares": 600,
|
||||
"cost": 104.87,
|
||||
"price": 84.25,
|
||||
"position_pct": 4.62,
|
||||
"added_at": null,
|
||||
"is_active": 1,
|
||||
"closed_at": null,
|
||||
"close_pnl": null,
|
||||
"price": 84.15,
|
||||
"market_value": 44376.0,
|
||||
"change_pct": 0.18,
|
||||
"currency": "HKD",
|
||||
"position_pct": 4.62
|
||||
"change_pct": 0.06,
|
||||
"currency": "HKD"
|
||||
},
|
||||
{
|
||||
"code": "01478",
|
||||
"name": "丘钛科技",
|
||||
"shares": 11000,
|
||||
"cost": 13.47,
|
||||
"price": 6.75,
|
||||
"position_pct": 7.97,
|
||||
"added_at": null,
|
||||
"is_active": 1,
|
||||
"closed_at": null,
|
||||
"close_pnl": null,
|
||||
"price": 6.74,
|
||||
"market_value": 64460.0,
|
||||
"change_pct": -3.43,
|
||||
"currency": "HKD",
|
||||
"position_pct": 7.97
|
||||
"change_pct": -3.58,
|
||||
"currency": "HKD"
|
||||
},
|
||||
{
|
||||
"code": "02202",
|
||||
"name": "万科企业",
|
||||
"shares": 19700,
|
||||
"cost": 4.67,
|
||||
"price": 2.33,
|
||||
"position_pct": 4.6,
|
||||
"added_at": null,
|
||||
"is_active": 1,
|
||||
"closed_at": null,
|
||||
"close_pnl": null,
|
||||
"price": 2.32,
|
||||
"market_value": 40385.0,
|
||||
"change_pct": -0.43,
|
||||
"currency": "HKD",
|
||||
"position_pct": 4.6
|
||||
"change_pct": -0.85,
|
||||
"currency": "HKD"
|
||||
},
|
||||
{
|
||||
"code": "300035",
|
||||
"name": "中科电气",
|
||||
"shares": 1400,
|
||||
"cost": 22.29,
|
||||
"price": 14.02,
|
||||
"position_pct": 2.42,
|
||||
"added_at": null,
|
||||
"is_active": 1,
|
||||
"closed_at": null,
|
||||
"close_pnl": null,
|
||||
"price": 14.03,
|
||||
"market_value": 19712.0,
|
||||
"change_pct": -1.89,
|
||||
"currency": "CNY",
|
||||
"position_pct": 2.42
|
||||
"change_pct": -1.82,
|
||||
"currency": "CNY"
|
||||
},
|
||||
{
|
||||
"code": "300308",
|
||||
"name": "中际旭创",
|
||||
"shares": 100,
|
||||
"cost": 1316.53,
|
||||
"price": 1116.03,
|
||||
"position_pct": 15.27,
|
||||
"added_at": null,
|
||||
"is_active": 1,
|
||||
"closed_at": null,
|
||||
"close_pnl": null,
|
||||
"price": 1117.49,
|
||||
"market_value": 106181.0,
|
||||
"change_pct": 0.0,
|
||||
"currency": "CNY",
|
||||
"position_pct": 15.27
|
||||
"change_pct": 0.13,
|
||||
"currency": "CNY"
|
||||
},
|
||||
{
|
||||
"code": "300750",
|
||||
"name": "宁德时代",
|
||||
"shares": 100,
|
||||
"cost": 401.78,
|
||||
"price": 377.6,
|
||||
"position_pct": 4.64,
|
||||
"added_at": null,
|
||||
"is_active": 1,
|
||||
"closed_at": null,
|
||||
"close_pnl": null,
|
||||
"price": 378.07,
|
||||
"market_value": 37726.0,
|
||||
"change_pct": -0.63,
|
||||
"currency": "CNY",
|
||||
"position_pct": 4.64
|
||||
"change_pct": -0.51,
|
||||
"currency": "CNY"
|
||||
},
|
||||
{
|
||||
"code": "518880",
|
||||
"name": "黄金ETF华安",
|
||||
"shares": 2400,
|
||||
"cost": 12.19,
|
||||
"price": 8.66,
|
||||
"position_pct": 2.45,
|
||||
"added_at": null,
|
||||
"is_active": 1,
|
||||
"closed_at": null,
|
||||
"close_pnl": null,
|
||||
"price": 8.63,
|
||||
"market_value": 20832.0,
|
||||
"change_pct": -0.08,
|
||||
"currency": "CNY",
|
||||
"position_pct": 2.45
|
||||
"change_pct": -0.45,
|
||||
"currency": "CNY"
|
||||
},
|
||||
{
|
||||
"code": "600563",
|
||||
"name": "法拉电子",
|
||||
"shares": 100,
|
||||
"cost": 147.18,
|
||||
"price": 153.42,
|
||||
"position_pct": 2.3,
|
||||
"added_at": null,
|
||||
"is_active": 1,
|
||||
"closed_at": null,
|
||||
"close_pnl": null,
|
||||
"price": 154.64,
|
||||
"market_value": 15021.0,
|
||||
"change_pct": -2.32,
|
||||
"currency": "CNY",
|
||||
"position_pct": 2.3
|
||||
"change_pct": -1.54,
|
||||
"currency": "CNY"
|
||||
},
|
||||
{
|
||||
"code": "601899",
|
||||
"name": "紫金矿业",
|
||||
"shares": 2400,
|
||||
"cost": 39.89,
|
||||
"price": 28.41,
|
||||
"position_pct": 7.34,
|
||||
"added_at": null,
|
||||
"is_active": 1,
|
||||
"closed_at": null,
|
||||
"close_pnl": null,
|
||||
"price": 28.42,
|
||||
"market_value": 68784.0,
|
||||
"change_pct": 2.12,
|
||||
"currency": "CNY",
|
||||
"position_pct": 7.34
|
||||
"change_pct": 2.16,
|
||||
"currency": "CNY"
|
||||
},
|
||||
{
|
||||
"code": "688411",
|
||||
"name": "海博思创",
|
||||
"shares": 200,
|
||||
"cost": 266.95,
|
||||
"price": 262.98,
|
||||
"position_pct": 6.31,
|
||||
"added_at": null,
|
||||
"is_active": 1,
|
||||
"closed_at": null,
|
||||
"close_pnl": null,
|
||||
"price": 263.0,
|
||||
"market_value": 52064.0,
|
||||
"change_pct": 4.71,
|
||||
"currency": "CNY",
|
||||
"position_pct": 6.31
|
||||
"change_pct": 4.72,
|
||||
"currency": "CNY"
|
||||
},
|
||||
{
|
||||
"code": "688639",
|
||||
"name": "华恒生物",
|
||||
"shares": 2800,
|
||||
"cost": 21.51,
|
||||
"price": 16.61,
|
||||
"position_pct": 5.25,
|
||||
"added_at": null,
|
||||
"is_active": 1,
|
||||
"closed_at": null,
|
||||
"close_pnl": null,
|
||||
"price": 16.57,
|
||||
"market_value": 46480.0,
|
||||
"change_pct": -0.3,
|
||||
"currency": "CNY",
|
||||
"position_pct": 5.25
|
||||
"change_pct": -0.54,
|
||||
"currency": "CNY"
|
||||
},
|
||||
{
|
||||
"code": "688981",
|
||||
"name": "中芯国际",
|
||||
"shares": 300,
|
||||
"cost": 126.07,
|
||||
"price": 147.18,
|
||||
"position_pct": 5.44,
|
||||
"added_at": null,
|
||||
"is_active": 1,
|
||||
"closed_at": null,
|
||||
"close_pnl": null,
|
||||
"price": 147.6,
|
||||
"market_value": 40599.0,
|
||||
"change_pct": 4.9,
|
||||
"currency": "CNY",
|
||||
"position_pct": 5.44
|
||||
"change_pct": 5.2,
|
||||
"currency": "CNY"
|
||||
}
|
||||
],
|
||||
"cash": 289196.0,
|
||||
"cash": 321271.0,
|
||||
"frozen_cash": 0.0,
|
||||
"total_mv": 619713.76,
|
||||
"total_assets": 908909.76,
|
||||
"position_pct": 68.18,
|
||||
"total_mv": 620482.46,
|
||||
"total_assets": 941753.46,
|
||||
"stock_value": 620482.46,
|
||||
"position_pct": 65.89,
|
||||
"currency": "CNY",
|
||||
"updated_at": "2026-07-06 11:35:19",
|
||||
"stock_value": 619713.76
|
||||
"updated_at": "2026-07-06 13:06:24",
|
||||
"total_pnl": null,
|
||||
"cash_history": []
|
||||
}
|
||||
Reference in New Issue
Block a user