HK股数据清洗:成本/价格双币种标记

portfolio.json: 港股cost_currency=HKD, cost_cny, price_hkd字段
decisions.json: 港股currency=HKD, 所有价格字段分存_hkd/_cny
修复建滔积层板浮亏-24%→-12.8%问题
根因:cost=88.22HKD被标成CNY,脚本转换价后错算浮亏
This commit is contained in:
知微
2026-07-03 09:31:27 +08:00
parent 9e5ea52c1e
commit cd8eba74e4
13 changed files with 1810 additions and 1446 deletions
+61 -61
View File
@@ -5,9 +5,9 @@
"name": "中际旭创",
"shares": 100,
"cost": 1316.53,
"price": 1153.0,
"market_value": 113604.0,
"change_pct": -5.74,
"price": 1145.0,
"market_value": 113000.0,
"change_pct": 0.17,
"currency": "CNY",
"position_pct": 15.27,
"_currency": "CNY"
@@ -17,9 +17,9 @@
"name": "长飞光纤光缆",
"shares": 500,
"cost": 263.72,
"price": 174.79,
"market_value": 89300.0,
"change_pct": -21.06,
"price": 167.16,
"market_value": 83230.0,
"change_pct": -2.61,
"currency": "CNY",
"position_pct": 13.47,
"_currency": "CNY"
@@ -29,9 +29,9 @@
"name": "丘钛科技",
"shares": 11000,
"cost": 13.47,
"price": 5.95,
"market_value": 65890.0,
"change_pct": 0.0,
"price": 5.83,
"market_value": 64130.0,
"change_pct": -1.895,
"currency": "CNY",
"position_pct": 7.97,
"_currency": "CNY"
@@ -41,9 +41,9 @@
"name": "紫金矿业",
"shares": 2400,
"cost": 39.89,
"price": 26.4,
"market_value": 63048.0,
"change_pct": 5.14,
"price": 27.7,
"market_value": 66000.0,
"change_pct": 5.32,
"currency": "CNY",
"position_pct": 7.34,
"_currency": "CNY"
@@ -53,9 +53,9 @@
"name": "海博思创",
"shares": 200,
"cost": 266.95,
"price": 258.8,
"market_value": 51776.0,
"change_pct": -1.56,
"price": 256.73,
"market_value": 51160.0,
"change_pct": 0.4,
"currency": "CNY",
"position_pct": 6.31,
"_currency": "CNY"
@@ -65,9 +65,9 @@
"name": "中芯国际",
"shares": 300,
"cost": 126.07,
"price": 147.2,
"market_value": 44112.0,
"change_pct": -4.71,
"price": 144.98,
"market_value": 43467.0,
"change_pct": 0.61,
"currency": "CNY",
"position_pct": 5.44,
"_currency": "CNY"
@@ -77,9 +77,9 @@
"name": "建滔积层板",
"shares": 500,
"cost": 88.23,
"price": 72.35,
"market_value": 36415.0,
"change_pct": -15.83,
"price": 65.98,
"market_value": 32970.0,
"change_pct": -9.19,
"currency": "CNY",
"position_pct": 5.28,
"_currency": "CNY"
@@ -89,9 +89,9 @@
"name": "华恒生物",
"shares": 2800,
"cost": 21.51,
"price": 17.24,
"market_value": 48244.0,
"change_pct": 5.31,
"price": 17.12,
"market_value": 47768.0,
"change_pct": 1.0,
"currency": "CNY",
"position_pct": 5.25,
"_currency": "CNY"
@@ -101,9 +101,9 @@
"name": "宁德时代",
"shares": 100,
"cost": 401.78,
"price": 385.54,
"market_value": 38495.0,
"change_pct": 0.44,
"price": 382.0,
"market_value": 38196.0,
"change_pct": -0.09,
"currency": "CNY",
"position_pct": 4.64,
"_currency": "CNY"
@@ -113,9 +113,9 @@
"name": "比亚迪股份",
"shares": 600,
"cost": 104.87,
"price": 67.97,
"market_value": 41070.0,
"change_pct": 8.21,
"price": 75.0,
"market_value": 44268.0,
"change_pct": 10.47,
"currency": "CNY",
"position_pct": 4.62,
"_currency": "CNY"
@@ -125,9 +125,9 @@
"name": "万科企业",
"shares": 19700,
"cost": 4.67,
"price": 1.92,
"market_value": 38021.0,
"change_pct": 4.72,
"price": 1.98,
"market_value": 38415.0,
"change_pct": 2.24,
"currency": "CNY",
"position_pct": 4.6,
"_currency": "CNY"
@@ -137,9 +137,9 @@
"name": "腾讯",
"shares": 100,
"cost": null,
"price": 377.49,
"market_value": 37784.0,
"change_pct": 1.3,
"price": 376.45,
"market_value": 37714.0,
"change_pct": 0.93,
"currency": "CNY",
"position_pct": null,
"_currency": "CNY"
@@ -149,9 +149,9 @@
"name": "中芯国际",
"shares": 500,
"cost": 75.94,
"price": 69.14,
"market_value": 34635.0,
"change_pct": -10.79,
"price": 68.15,
"market_value": 34030.0,
"change_pct": -2.24,
"currency": "CNY",
"position_pct": 4.2,
"_currency": "CNY"
@@ -161,9 +161,9 @@
"name": "长芯博创",
"shares": 100,
"cost": 231.46,
"price": 226.0,
"market_value": 22592.0,
"change_pct": -11.02,
"price": 222.34,
"market_value": 22000.0,
"change_pct": 0.15,
"currency": "CNY",
"position_pct": 3.2,
"_currency": "CNY"
@@ -173,9 +173,9 @@
"name": "黄金ETF华安",
"shares": 2400,
"cost": 12.19,
"price": 8.46,
"market_value": 20280.0,
"change_pct": 2.32,
"price": 8.71,
"market_value": 20904.0,
"change_pct": 2.73,
"currency": "CNY",
"position_pct": 2.45,
"_currency": "CNY"
@@ -185,9 +185,9 @@
"name": "中科电气",
"shares": 1400,
"cost": 22.29,
"price": 14.32,
"market_value": 20062.0,
"change_pct": -0.83,
"price": 14.19,
"market_value": 19852.0,
"change_pct": 0.14,
"currency": "CNY",
"position_pct": 2.42,
"_currency": "CNY"
@@ -197,9 +197,9 @@
"name": "模塑科技",
"shares": 1400,
"cost": 14.83,
"price": 16.87,
"market_value": 23618.0,
"change_pct": 9.97,
"price": 16.55,
"market_value": 22512.0,
"change_pct": -1.9,
"currency": "CNY",
"position_pct": 2.41,
"_currency": "CNY"
@@ -209,9 +209,9 @@
"name": "法拉电子",
"shares": 100,
"cost": 147.18,
"price": 164.3,
"market_value": 16460.0,
"change_pct": -10.0,
"price": 161.29,
"market_value": 16027.0,
"change_pct": -1.83,
"currency": "CNY",
"position_pct": 2.3,
"_currency": "CNY"
@@ -221,20 +221,20 @@
"name": "中国神华",
"shares": 500,
"cost": 45.89,
"price": 34.16,
"market_value": 17115.0,
"change_pct": 1.19,
"price": 34.33,
"market_value": 17375.0,
"change_pct": 0.0,
"currency": "CNY",
"position_pct": 2.14,
"_currency": "CNY"
}
],
"total_assets": 901907.0,
"total_mv": 821431.0,
"total_assets": 898326.0,
"total_mv": 817850.0,
"stock_value": null,
"cash": 80476.0,
"frozen_cash": 0.0,
"position_pct": 91.08,
"position_pct": 91.04,
"currency": "CNY",
"updated_at": "2026-07-02 14:12"
"updated_at": "2026-07-03 09:31"
}