Files
MoFin/data/portfolio.json
T
知微 7c0e85af28 硬性策略质量门禁 validate_strategy()
新增 STRATEGY_QUALITY_GATES 检查清单(9条红线):
CRITICAL: 止损/止盈存在+>0, 买入区下沿<上沿
HIGH: 止损≤买入区, 买入推荐含RR≥1.5, 港股标currency=HKD
MEDIUM: signal短词, tech_snapshot含技术位

enforce_strategy_quality() 插在写入链的两处:
1. reassess_with_context() return前 → 单只重评必过
2. regenerate_all() for d in decisions: 写DB前 → 批量重评必过

不过的:status=review_needed, signal降级→信号不充分
不会写进DB/JSON,除非修复了CRITICAL问题
2026-07-02 13:46:53 +08:00

240 lines
5.2 KiB
JSON

{
"holdings": [
{
"code": "300308",
"name": "中际旭创",
"shares": 100,
"cost": 1316.53,
"price": 1135.18,
"market_value": 113604.0,
"change_pct": -7.19,
"currency": "CNY",
"position_pct": 15.27,
"_currency": "CNY"
},
{
"code": "06869",
"name": "长飞光纤光缆",
"shares": 500,
"cost": 263.72,
"price": 178.6,
"market_value": 89300.0,
"change_pct": -19.342,
"currency": "CNY",
"position_pct": 13.47,
"_currency": "CNY"
},
{
"code": "01478",
"name": "丘钛科技",
"shares": 11000,
"cost": 13.47,
"price": 5.99,
"market_value": 65890.0,
"change_pct": 0.729,
"currency": "CNY",
"position_pct": 7.97,
"_currency": "CNY"
},
{
"code": "601899",
"name": "紫金矿业",
"shares": 2400,
"cost": 39.89,
"price": 26.35,
"market_value": 63048.0,
"change_pct": 4.94,
"currency": "CNY",
"position_pct": 7.34,
"_currency": "CNY"
},
{
"code": "688411",
"name": "海博思创",
"shares": 200,
"cost": 266.95,
"price": 258.3,
"market_value": 51776.0,
"change_pct": -1.75,
"currency": "CNY",
"position_pct": 6.31,
"_currency": "CNY"
},
{
"code": "688981",
"name": "中芯国际",
"shares": 300,
"cost": 126.07,
"price": 146.32,
"market_value": 44112.0,
"change_pct": -5.28,
"currency": "CNY",
"position_pct": 5.44,
"_currency": "CNY"
},
{
"code": "01888",
"name": "建滔积层板",
"shares": 500,
"cost": 88.23,
"price": 72.83,
"market_value": 36415.0,
"change_pct": -15.28,
"currency": "CNY",
"position_pct": 5.28,
"_currency": "CNY"
},
{
"code": "688639",
"name": "华恒生物",
"shares": 2800,
"cost": 21.51,
"price": 17.18,
"market_value": 48244.0,
"change_pct": 4.95,
"currency": "CNY",
"position_pct": 5.25,
"_currency": "CNY"
},
{
"code": "300750",
"name": "宁德时代",
"shares": 100,
"cost": 401.78,
"price": 386.3,
"market_value": 38495.0,
"change_pct": 0.64,
"currency": "CNY",
"position_pct": 4.64,
"_currency": "CNY"
},
{
"code": "01211",
"name": "比亚迪股份",
"shares": 600,
"cost": 104.87,
"price": 68.41,
"market_value": 41070.0,
"change_pct": 8.903,
"currency": "CNY",
"position_pct": 4.62,
"_currency": "CNY"
},
{
"code": "02202",
"name": "万科企业",
"shares": 19700,
"cost": 4.67,
"price": 1.92,
"market_value": 38021.0,
"change_pct": 4.717,
"currency": "CNY",
"position_pct": 4.6,
"_currency": "CNY"
},
{
"code": "00700",
"name": "腾讯",
"shares": 100,
"cost": null,
"price": 378.36,
"market_value": 37784.0,
"change_pct": 1.536,
"currency": "CNY",
"position_pct": null,
"_currency": "CNY"
},
{
"code": "00981",
"name": "中芯国际",
"shares": 500,
"cost": 75.94,
"price": 69.88,
"market_value": 34635.0,
"change_pct": -9.843,
"currency": "CNY",
"position_pct": 4.2,
"_currency": "CNY"
},
{
"code": "300548",
"name": "长芯博创",
"shares": 100,
"cost": 231.46,
"price": 225.0,
"market_value": 22592.0,
"change_pct": -11.42,
"currency": "CNY",
"position_pct": 3.2,
"_currency": "CNY"
},
{
"code": "518880",
"name": "黄金ETF华安",
"shares": 2400,
"cost": 12.19,
"price": 8.45,
"market_value": 20280.0,
"change_pct": 2.13,
"currency": "CNY",
"position_pct": 2.45,
"_currency": "CNY"
},
{
"code": "300035",
"name": "中科电气",
"shares": 1400,
"cost": 22.29,
"price": 14.33,
"market_value": 20062.0,
"change_pct": -0.76,
"currency": "CNY",
"position_pct": 2.42,
"_currency": "CNY"
},
{
"code": "000700",
"name": "模塑科技",
"shares": 1400,
"cost": 14.83,
"price": 16.87,
"market_value": 23618.0,
"change_pct": 9.97,
"currency": "CNY",
"position_pct": 2.41,
"_currency": "CNY"
},
{
"code": "600563",
"name": "法拉电子",
"shares": 100,
"cost": 147.18,
"price": 164.32,
"market_value": 16460.0,
"change_pct": -9.99,
"currency": "CNY",
"position_pct": 2.3,
"_currency": "CNY"
},
{
"code": "01088",
"name": "中国神华",
"shares": 500,
"cost": 45.89,
"price": 34.26,
"market_value": 17115.0,
"change_pct": 1.503,
"currency": "CNY",
"position_pct": 2.14,
"_currency": "CNY"
}
],
"total_assets": 902797.0,
"total_mv": 822321.0,
"stock_value": null,
"cash": 80476.0,
"frozen_cash": 0.0,
"position_pct": 91.09,
"currency": "CNY",
"updated_at": "2026-07-02 13:46"
}