Files
MoFin/data/portfolio.json
T
知微 0bfb819110 DB港股价格+成本修复回HKD原值
笑笑重构把HK股的价格和成本都转CNY写入DB。
price_monitor同时改了新逻辑要写HKD,但DB已经是CNY,
两个方向打架导致建滔(-2.5%实际浮亏)被算成-15.5%。

修复:
  DB holdings表8只HK股的price和cost从CNY转回HKD
  currency改回HKD
  现金修正为132,121.93(Dad 7/3截图确认)
  总资产=957,656.13 仓位=86.2%
2026-07-03 14:42:30 +08:00

241 lines
5.2 KiB
JSON

{
"holdings": [
{
"code": "300308",
"name": "中际旭创",
"shares": 100,
"cost": 1316.53,
"price": 1124.57,
"market_value": 112300.0,
"change_pct": -1.61,
"currency": "CNY",
"position_pct": 15.27,
"_currency": "CNY"
},
{
"code": "06869",
"name": "长飞光纤光缆",
"shares": 500,
"cost": 263.73,
"price": 204.2,
"market_value": 88175.0,
"change_pct": 3.152,
"currency": "HKD",
"position_pct": 13.47,
"_currency": "HKD"
},
{
"code": "01478",
"name": "丘钛科技",
"shares": 11000,
"cost": 13.47,
"price": 7.07,
"market_value": 67320.0,
"change_pct": 5.208,
"currency": "HKD",
"position_pct": 7.97,
"_currency": "HKD"
},
{
"code": "601899",
"name": "紫金矿业",
"shares": 2400,
"cost": 39.89,
"price": 27.88,
"market_value": 66888.0,
"change_pct": 6.01,
"currency": "CNY",
"position_pct": 7.34,
"_currency": "CNY"
},
{
"code": "688411",
"name": "海博思创",
"shares": 200,
"cost": 266.95,
"price": 252.41,
"market_value": 50496.0,
"change_pct": -1.29,
"currency": "CNY",
"position_pct": 6.31,
"_currency": "CNY"
},
{
"code": "688981",
"name": "中芯国际",
"shares": 300,
"cost": 126.07,
"price": 141.28,
"market_value": 42324.0,
"change_pct": -1.96,
"currency": "CNY",
"position_pct": 5.44,
"_currency": "CNY"
},
{
"code": "01888",
"name": "建滔积层板",
"shares": 500,
"cost": 88.24,
"price": 86.0,
"market_value": 37520.0,
"change_pct": 2.625,
"currency": "HKD",
"position_pct": 5.28,
"_currency": "HKD"
},
{
"code": "688639",
"name": "华恒生物",
"shares": 2800,
"cost": 21.51,
"price": 16.63,
"market_value": 46564.0,
"change_pct": -1.89,
"currency": "CNY",
"position_pct": 5.25,
"_currency": "CNY"
},
{
"code": "300750",
"name": "宁德时代",
"shares": 100,
"cost": 401.78,
"price": 380.78,
"market_value": 38105.0,
"change_pct": -0.41,
"currency": "CNY",
"position_pct": 4.64,
"_currency": "CNY"
},
{
"code": "01211",
"name": "比亚迪股份",
"shares": 600,
"cost": 104.87,
"price": 83.4,
"market_value": 43542.0,
"change_pct": 6.513,
"currency": "HKD",
"position_pct": 4.62,
"_currency": "HKD"
},
{
"code": "02202",
"name": "万科企业",
"shares": 19700,
"cost": 4.67,
"price": 2.32,
"market_value": 39794.0,
"change_pct": 4.036,
"currency": "HKD",
"position_pct": 4.6,
"_currency": "HKD"
},
{
"code": "00700",
"name": "腾讯",
"shares": 100,
"cost": 0.0,
"price": 435.2,
"market_value": 37801.0,
"change_pct": 1.162,
"currency": "HKD",
"position_pct": null,
"_currency": "HKD"
},
{
"code": "00981",
"name": "中芯国际",
"shares": 500,
"cost": 75.94,
"price": 78.15,
"market_value": 33900.0,
"change_pct": -2.799,
"currency": "HKD",
"position_pct": 4.2,
"_currency": "HKD"
},
{
"code": "300548",
"name": "长芯博创",
"shares": 100,
"cost": 231.46,
"price": 222.45,
"market_value": 22236.0,
"change_pct": 0.2,
"currency": "CNY",
"position_pct": 3.2,
"_currency": "CNY"
},
{
"code": "518880",
"name": "黄金ETF华安",
"shares": 2400,
"cost": 12.19,
"price": 8.66,
"market_value": 20784.0,
"change_pct": 2.22,
"currency": "CNY",
"position_pct": 2.45,
"_currency": "CNY"
},
{
"code": "300035",
"name": "中科电气",
"shares": 1400,
"cost": 22.29,
"price": 14.3,
"market_value": 20006.0,
"change_pct": 0.92,
"currency": "CNY",
"position_pct": 2.42,
"_currency": "CNY"
},
{
"code": "000700",
"name": "模塑科技",
"shares": 1400,
"cost": 14.83,
"price": 17.6,
"market_value": 24654.0,
"change_pct": 4.33,
"currency": "CNY",
"position_pct": 2.41,
"_currency": "CNY"
},
{
"code": "600563",
"name": "法拉电子",
"shares": 100,
"cost": 147.18,
"price": 157.93,
"market_value": 15800.0,
"change_pct": -3.88,
"currency": "CNY",
"position_pct": 2.3,
"_currency": "CNY"
},
{
"code": "01088",
"name": "中国神华",
"shares": 500,
"cost": 45.89,
"price": 39.97,
"market_value": 17340.0,
"change_pct": 0.909,
"currency": "HKD",
"position_pct": 2.14,
"_currency": "HKD"
}
],
"total_assets": 957656.13,
"total_mv": 825534.2,
"stock_value": null,
"cash": 132121.93,
"frozen_cash": 0,
"position_pct": 86.2,
"currency": "CNY",
"updated_at": "2026-07-03 14:45",
"_source": "db_sync"
}