feat: mo_data.py unified read layer (DB-first, JSON fallback) + cash_log table + batch JSON→DB migration (16 files)

This commit is contained in:
知微
2026-07-01 23:45:30 +08:00
parent 864d924012
commit 6305204c7a
52 changed files with 16351 additions and 11643 deletions
+149 -149
View File
@@ -1,115 +1,178 @@
{
"timestamp": "2026-06-26 16:07",
"timestamp": "2026-07-01 16:14",
"analyses": [
{
"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.1,
"sentiment": "negative",
"confidence": 0.59,
"price": 25.11,
"sentiment": "neutral",
"confidence": 0.6,
"brief": "紫金矿业成交额超上一日全天。数据宝统计,截至14:10,紫金矿业成交额116.5...",
"keywords": [
"易控智驾通过港交所聆讯",
"紫金矿业",
"宁德时代",
"郑州高新基金参投",
"紫金矿业成交额超上一日全天"
"滴滴出行",
"紫金矿业入股航天科技公司宇石空间",
"企查查",
"显示",
"易控智驾通过港交所聆讯"
],
"news_count": 5,
"news_count": 4,
"pos_count": 0,
"neg_count": 2,
"neg_count": 1,
"neu_count": 3,
"reason": "SL_dist=19.6% TP_dist=3.3%",
"reason": "SL_dist=8.1% TP_dist=1.6%",
"priority": 1
},
{
"name": "中银香港",
"code": "02388",
"price": 45.48,
"sentiment": "neutral",
"confidence": 0.56,
"brief": "中银香港携泰国子行首批接入人民银行“数币达”平台。中银香港副总裁邢桂伟表示:“中...",
"keywords": [
"中银香港携泰国子行首批接入人民银行",
"数币达",
"平台",
"中银香港副总裁邢桂伟表示",
"中银香港陈卫全"
],
"news_count": 5,
"pos_count": 1,
"neg_count": 0,
"neu_count": 4,
"reason": "SL_dist=10.6% TP_dist=0.3%",
"priority": 1
},
{
"name": "宁德时代",
"code": "300750",
"price": 381.0,
"sentiment": "negative",
"confidence": 0.6,
"brief": "宁德时代成交额超150亿元。数据宝统计,截至14:16,宁德时代成交额151.1...",
"keywords": [
"股宁德时代盘中跌",
"现报",
"宁德时代成交额超",
"亿元",
"数据宝统计"
],
"news_count": 5,
"pos_count": 1,
"neg_count": 2,
"neu_count": 2,
"reason": "SL_dist=13.4% TP_dist=3.9%",
"priority": 1
},
{
"name": "腾讯控股",
"code": "00700",
"price": 411.8,
"name": "中芯国际",
"code": "688981",
"price": 154.48,
"sentiment": "positive",
"confidence": 0.56,
"brief": "100家港股公司回购腾讯控股回购5.01亿港元。本次回购5.01亿港元的腾讯控股...",
"confidence": 0.58,
"brief": "南向资金今日净买入约59亿港元中芯国际获净买入目前。中芯国际、建滔积层板分别获净...",
"keywords": [
"家港股公司回购腾讯控股回购",
"亿元",
"本次回购",
"亿港元的腾讯控股",
"腾讯控股午后涨超"
"中芯国际成交额超",
"亿元",
"数据宝统计",
"截至",
"中芯国际成交额超上一日全天"
],
"news_count": 5,
"pos_count": 2,
"neg_count": 0,
"neu_count": 3,
"reason": "SL_dist=19.8% TP_dist=0.8%",
"reason": "SL_dist=3.0% TP_dist=14.2%",
"priority": 1
},
{
"name": "长芯博创",
"code": "300548",
"price": 254.0,
"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
},
{
"name": "黄金ETF华安",
"code": "518880",
"price": 8.27,
"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
},
{
"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": 14.13,
"sentiment": "negative",
"confidence": 0.57,
"price": 15.34,
"sentiment": "neutral",
"confidence": 0.56,
"brief": "模塑科技:基于商业保密要求,公司不便透露与客户的具体合作信息。证券日报网讯6月1...",
"keywords": [
"机器人概念逆势拉升模塑科技",
"祥鑫科技双双涨停",
"机器人概念盘中逆势拉升",
"模塑科技涨停",
"模塑科技"
"模塑科技",
"关于控股股东部分股权解除质押的公告",
"证券日报网讯",
"模塑科技发布公告称",
"机器人概念逆势拉升模塑科技"
],
"news_count": 5,
"pos_count": 1,
"neg_count": 2,
"neu_count": 2,
"reason": "SL_dist=1.6% TP_dist=20.3%",
"neg_count": 0,
"neu_count": 4,
"reason": "SL_dist=9.3% TP_dist=1.3%",
"priority": 1
},
{
"name": "法拉电子",
"code": "600563",
"price": 188.76,
"price": 182.55,
"sentiment": "neutral",
"confidence": 0.55,
"brief": "法拉电子:2025年年度权益分派实施公告。证券日报网讯6月4日,法拉电子发布20...",
@@ -124,91 +187,28 @@
"pos_count": 0,
"neg_count": 0,
"neu_count": 5,
"reason": "SL_dist=9.7% TP_dist=1.0%",
"reason": "SL_dist=6.9% TP_dist=3.1%",
"priority": 1
},
{
"name": "中国神华",
"code": "01088",
"price": 40.6,
"sentiment": "positive",
"confidence": 0.56,
"brief": "中国神华:5月商品煤产量同比下降4.1%。南财智讯6月17日电,中国神华公告,5...",
"keywords": [
"中国神华",
"向财务公司增资",
"亿元",
"公告称",
"国家能源集团财务公司股东中国神华参与公司增资获董事会批准公司增资合计"
],
"news_count": 5,
"pos_count": 2,
"neg_count": 0,
"neu_count": 3,
"reason": "SL_dist=18.5% TP_dist=1.7%",
"priority": 1
},
{
"name": "中际旭创",
"code": "300308",
"price": 1253.89,
"sentiment": "negative",
"confidence": 0.62,
"brief": "中际旭创成交额超100亿元。数据宝统计,截至09:48,中际旭创成交额102.3...",
"keywords": [
"中际旭创成交额超",
"亿元",
"数据宝统计",
"截至",
"中际旭创成交额达"
],
"news_count": 5,
"pos_count": 0,
"neg_count": 4,
"neu_count": 1,
"reason": "涨跌幅-5.25%",
"priority": 2
},
{
"name": "长飞光纤光缆",
"code": "06869",
"price": 250.6,
"price": 221.69,
"sentiment": "negative",
"confidence": 0.58,
"brief": "港股光通信股走弱长飞光纤光缆跌超8%。截至发稿,长飞光纤光缆(06869.HK)...",
"brief": "港股评级汇总:野村维持对长飞光纤光缆买入评级。财联社6月29日讯以下为各家机构对...",
"keywords": [
"港股光通信股走长飞光纤光缆超",
"港股光通信股走长飞光纤光缆超",
"截至发稿",
"长飞光纤光缆",
"舜宇光学科技",
"港股人工智能股震荡走低长飞光纤光缆跌超"
"海光芯正",
"日将派发股息"
],
"news_count": 5,
"pos_count": 0,
"neg_count": 5,
"neu_count": 0,
"reason": "涨跌幅-12.87%",
"priority": 2
},
{
"name": "丘钛科技",
"code": "01478",
"price": 6.84,
"sentiment": "positive",
"confidence": 0.57,
"brief": "丘钛科技5月手机摄像头模组销售数量增长39.4%。丘钛科技5月手机摄像头模组销售...",
"keywords": [
"丘钛科技",
"月手机摄像头模组销售数量增长",
"月摄像头模组与激光雷达销量同比增",
"发布公告",
"公司摄像头模组与激光雷达销售数量合计"
],
"news_count": 5,
"pos_count": 3,
"neg_count": 0,
"pos_count": 1,
"neg_count": 2,
"neu_count": 2,
"reason": "涨跌幅-5.00%",
"reason": "涨跌幅+6.68%",
"priority": 2
}
],