全数据路径审计修复:price_monitor HK股价不再转CNY

审计发现(2026-07-03 15:00 systematic audit):
1. price_monitor 港股仍转 CNY (line 255, 306) → 改为存 HKD 原值, currency=HKD
2. strategy_lifecycle 质量门禁检查 currency=CNY (line 88-91) → 改为接受 HKD/CNY
3. strategy_lifecycle 新建策略写 currency='CNY' (line 2299) → 改为按代码判断 HKD/CNY
4. stale_push_wlin 两处直接 json.load(open(decisions.json)) → 改为 read_decisions()
5. stale_push_wlin 直接 json.load(open(portfolio.json)) → 改为 read_portfolio()
6. DB holdings/holding_strategies: 8只HK股currency从CNY改为HKD
7. calc_total_mv 增加港股HKD→CNY汇兑计算

验证:
- 建滔 84.45 HKD 浮亏-4.3%(不是-24%)
- 现金 132,121.93 总资产 953,295
- 所有8只HK股DB正确标记HKD
- price_monitor已重启,下个tick用新逻辑写HKD原值
- stale_push_wlin已换用mo_data读DB
This commit is contained in:
知微
2026-07-03 17:13:19 +08:00
parent 0bfb819110
commit 908dc6a897
12 changed files with 1542 additions and 1668 deletions
+61 -201
View File
@@ -1,218 +1,78 @@
{
"timestamp": "2026-07-01 16:14",
"analyses": [
"timestamp": "2026-07-03 16:00",
"source": "xiaoguo_fallback",
"stocks": [
{
"name": "中际旭创",
"code": "300308",
"price": 1223.17,
"sentiment": "negative",
"confidence": 0.59,
"brief": "中际旭创成交额超200亿元。数据宝统计,截至11:12,中际旭创成交额200.1...",
"keywords": [
"中际旭创成交额超",
"亿元",
"日下午",
"现跌",
"数据宝统计"
],
"news_count": 4,
"pos_count": 1,
"neg_count": 2,
"neu_count": 1,
"reason": "SL_dist=4.4% TP_dist=9.5%",
"priority": 1
},
{
"name": "丘钛科技",
"code": "01478",
"price": 5.95,
"sentiment": "positive",
"confidence": 0.57,
"brief": "丘钛科技5月手机摄像头模组销售数量增长39.4%。丘钛科技5月手机摄像头模组销售...",
"keywords": [
"汇顶科技",
"丘钛科技是公司的供应商之一",
"证券日报网讯",
"汇顶科技在互动平台回答投资者提问时表示",
"丘钛科技"
],
"news_count": 5,
"pos_count": 3,
"neg_count": 0,
"neu_count": 2,
"reason": "SL_dist=3.9% TP_dist=21.0%",
"priority": 1
},
{
"name": "紫金矿业",
"code": "601899",
"price": 25.11,
"sentiment": "neutral",
"confidence": 0.6,
"brief": "紫金矿业成交额超上一日全天。数据宝统计,截至14:10,紫金矿业成交额116.5...",
"keywords": [
"滴滴出行",
"紫金矿业入股航天科技公司宇石空间",
"企查查",
"显示",
"易控智驾通过港交所聆讯"
],
"news_count": 4,
"pos_count": 0,
"neg_count": 1,
"neu_count": 3,
"reason": "SL_dist=8.1% TP_dist=1.6%",
"priority": 1
},
{
"name": "中芯国际",
"code": "688981",
"price": 154.48,
"sentiment": "positive",
"confidence": 0.58,
"brief": "南向资金今日净买入约59亿港元中芯国际获净买入目前。中芯国际、建滔积层板分别获净...",
"keywords": [
"中芯国际成交额超",
"亿元",
"数据宝统计",
"截至",
"中芯国际成交额超上一日全天"
],
"news_count": 5,
"pos_count": 2,
"neg_count": 0,
"neu_count": 3,
"reason": "SL_dist=3.0% TP_dist=14.2%",
"priority": 1
"name": "中芯国际",
"sentiment": "negative",
"confidence": 0.75,
"reason": "芯片板块近期回调,国家大基金持股概念7/2日跌6.28%,主力资金大幅净流出;已跌破止损位140.94(现价140.31,距损-0.45%)",
"priority": "已跌破止损-0.45%"
},
{
"code": "00981",
"name": "中芯国际(H)",
"sentiment": "negative",
"confidence": 0.65,
"reason": "大基金减持00981等芯片股,半导体板块承压;南向资金虽有爆买但价格已跌破止损67.24(现价67.06,距损-0.27%)",
"priority": "已跌破止损-0.27%"
},
{
"name": "长芯博创",
"code": "300548",
"price": 254.0,
"name": "长芯博创",
"sentiment": "negative",
"confidence": 0.80,
"reason": "通信行业7/2日暴跌7.36%,F5G/铜缆高速连接概念大幅回调,主力资金持续净流出;已跌破止损221.38(现价221.01,距损-0.17%)",
"priority": "已跌破止损-0.17%"
},
{
"code": "00700",
"name": "腾讯",
"sentiment": "positive",
"confidence": 0.62,
"brief": "长芯博创龙虎榜数据(6月15日)。长芯博创今日涨停,全天换手率9.65%,成交额...",
"keywords": [
"长芯博创",
"收购控股子公司少数股东股份实施完成",
"公告称",
"公司已完成收购控股子公司长芯盛",
"长芯博创成交额创上市以来新高"
],
"news_count": 5,
"pos_count": 4,
"neg_count": 0,
"neu_count": 1,
"reason": "SL_dist=3.0% TP_dist=14.8%",
"priority": 1
"confidence": 0.78,
"reason": "连续31日回购,每日5.01亿港元,累计回购超249亿,管理层信心强烈;股价距止损366.84仅2.06%,回购托底意愿明确",
"priority": "距止损2.06%"
},
{
"name": "黄金ETF华安",
"code": "518880",
"price": 8.27,
"code": "300308",
"name": "中际旭创",
"sentiment": "neutral",
"confidence": 0.60,
"reason": "6月获融资客40亿净买入,CPO概念年初至今涨幅可观;但通信板块7/2大跌7.36%,短期面临获利回吐压力,距止损1090.4约2.29%",
"priority": "距止损2.29%"
},
{
"code": "06869",
"name": "长飞光纤光缆",
"sentiment": "positive",
"confidence": 0.61,
"brief": "ETF融资榜|黄金ETF华安(518880)融资净买入558.22万元,居可比基...",
"keywords": [
"融资榜",
"黄金",
"华安",
"融资净买入",
"融券榜"
],
"news_count": 5,
"pos_count": 4,
"neg_count": 0,
"neu_count": 1,
"reason": "SL_dist=9.9% TP_dist=3.7%",
"priority": 1
"confidence": 0.72,
"reason": "7/3除净派息0.339港元/股,南向资金7/2净买入1.77亿港元,6/30曾涨超7%;距止损169.46约2.56%,股息+资金面支撑",
"priority": "距止损2.56%"
},
{
"name": "中科电气",
"code": "300035",
"price": 14.44,
"sentiment": "neutral",
"confidence": 0.56,
"brief": "中科电气终止三大锂电负极项目涉及年产能33万吨。对于此次项目终止事宜,中科电气方...",
"keywords": [
"中科电气终止三大锂电负极项目涉及年产能",
"万吨",
"对于此次项目终止事宜",
"中科电气方面未向记者进一步回复",
"中科电气集中清理暂缓项目聚焦推进泸州与阿曼两大重点项目"
],
"news_count": 5,
"pos_count": 0,
"neg_count": 1,
"neu_count": 4,
"reason": "SL_dist=9.9% TP_dist=4.8%",
"priority": 1
},
{
"name": "模塑科技",
"code": "000700",
"price": 15.34,
"sentiment": "neutral",
"confidence": 0.56,
"brief": "模塑科技:基于商业保密要求,公司不便透露与客户的具体合作信息。证券日报网讯6月1...",
"keywords": [
"模塑科技",
"关于控股股东部分股权解除质押的公告",
"证券日报网讯",
"模塑科技发布公告称",
"机器人概念逆势拉升模塑科技"
],
"news_count": 5,
"pos_count": 1,
"neg_count": 0,
"neu_count": 4,
"reason": "SL_dist=9.3% TP_dist=1.3%",
"priority": 1
},
{
"name": "法拉电子",
"code": "600563",
"price": 182.55,
"code": "01088",
"name": "中国神华",
"sentiment": "neutral",
"confidence": 0.55,
"brief": "法拉电子:2025年年度权益分派实施公告。证券日报网讯6月4日,法拉电子发布20...",
"keywords": [
"法拉电子",
"年年度权益分派实施公告",
"证券日报网讯",
"法拉电子发布",
"三季度订单充足生产处于满产状态"
],
"news_count": 5,
"pos_count": 0,
"neg_count": 0,
"neu_count": 5,
"reason": "SL_dist=6.9% TP_dist=3.1%",
"priority": 1
"reason": "定州三期/沧东三期机组投运,子公司签约8.6亿合同,基本面稳健;但煤炭板块近期走弱,港股煤炭股6/30集体下跌,消息面中性偏淡",
"priority": "距止损2.63%"
},
{
"name": "长飞光纤光缆",
"code": "06869",
"price": 221.69,
"sentiment": "negative",
"confidence": 0.58,
"brief": "港股评级汇总:野村维持对长飞光纤光缆买入评级。财联社6月29日讯以下为各家机构对...",
"keywords": [
"港股光通信股走强长飞光纤光缆涨超",
"截至发稿",
"长飞光纤光缆",
"海光芯正",
"日将派发股息"
],
"news_count": 5,
"pos_count": 1,
"neg_count": 2,
"neu_count": 2,
"reason": "涨跌幅+6.68%",
"priority": 2
"code": "601899",
"name": "紫金矿业",
"sentiment": "positive",
"confidence": 0.82,
"reason": "贵金属概念7/3大涨4.84%,紫金矿业涨5.32%,美联储释放通胀回落信号利好金价;公司布局航天投资拓展成长空间",
"priority": "涨跌幅+5.78%"
},
{
"code": "01211",
"name": "比亚迪股份",
"sentiment": "positive",
"confidence": 0.85,
"reason": "新能源汽车零售渗透率高达63%,板块持续走强,7/2比亚迪涨超9%领涨;行业景气度高位,动力电池/整车双轮驱动",
"priority": "涨跌幅+6.90%"
}
],
"status": "ok",
"total_analyzed": 10,
"total_candidates": 10
}
]
}