Files
MoFin/data/reports/cron_5cc9e2c77a93_2026-05-22_08-41-43.json
T
知微 (MoFin) aa0f740381 MoFin 初始提交
完整数据采集+分析管道:
- market_watch.py:90行业板块采集(同花顺/东方财富)
- 市场精选推荐 cron:全市场分析+候选池+星级推荐
- price_monitor.py:持仓/自选高频价格监控
- refresh_mtf_cache.py:多周期K线缓存
- 策略评估/知识萃取管道

文档:docs/ 含完整需求+架构设计
注意:尚未配置 git remote,笑笑接手后自行配置
2026-06-20 12:04:21 +08:00

9 lines
4.3 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"title": "Cron Job: 持仓情报-盘中(含价格监控)",
"type": "盘中",
"created_at": "2026-06-01T10:25:54.146099",
"summary": "**Job ID:** 5cc9e2c77a93\n**Run Time:** 2026-05-22 08:41:42\n**Schedule:** 40 8-15 * * 1-5\n[IMPORTANT: You are running as a scheduled cron job. DELIVERY: Your final response will be automatically delive",
"content": "# Cron Job: 持仓情报-盘中(含价格监控)\n\n**Job ID:** 5cc9e2c77a93\n**Run Time:** 2026-05-22 08:41:42\n**Schedule:** 40 8-15 * * 1-5\n\n## Prompt\n\n[IMPORTANT: You are running as a scheduled cron job. DELIVERY: Your final response will be automatically delivered to the user — do NOT use send_message or try to deliver the output yourself. Just produce your report/output as your final response and the system handles the rest. SILENT: If there is genuinely nothing new to report, respond with exactly \"[SILENT]\" (nothing else) to suppress delivery. Never combine [SILENT] with content — either report your findings normally, or say [SILENT] and nothing more.]\n\n执行持仓情报采集与价格区间监控任务。现在是老爸白天盘中时段(A股9:30-11:3013:00-15:00,港股9:30-12:0013:00-16:00)。\n\n重要:本轮是第几轮?如果是当日第一轮,则输出完整分析报告;如果是后续轮次,只输出变化和新信息。\n\n⚠️ 输出规则:只输出一条消息,不要分多条。通过 execute_code 发送 POST 请求到 http://192.168.0.111:5801。\n\n⚠️ JSON 格式必须严格正确(这是关键!):\n- 必须用 `json.dumps({\"to\": \"wxid_c0a6izmwd78y22\", \"message\": \"内容\"})` 构建JSON\n- 禁止手工拼接字符串/f-string构造JSON\n- 禁止用单引号包key\n- 消息内容中的反斜杠、换行符等特殊字符会被`json.dumps`自动转义\n- 格式示例:\n ```python\n import json, urllib.request\n data = json.dumps({\"to\": \"wxid_c0a6izmwd78y22\", \"message\": msg}).encode(\"utf-8\")\n req = urllib.request.Request(\"http://192.168.0.111:5801\", data=data, headers={\"Content-Type\": \"application/json\"})\n proxy_handler = urllib.request.ProxyHandler({})\n opener = urllib.request.build_opener(proxy_handler)\n with opener.open(req, timeout=10) as resp:\n pass\n ```\n\n📋 输出格式(合并为一条消息):\n\n【持仓操作】按当前仓位从高到低排列\n1. 股票名(代码) 现价¥XX.XX 涨跌幅±X.XX%\n - 操作建议:买入/卖出/持有/止盈/止损\n - 逻辑:当前价XX vs 成本XX vs 目标价XX\n - 仓位比例:XX%\n2. ...\n\n【自选关注】按推荐价值从高到低排列\n1. 股票名(代码) 现价¥XX.XX\n - 推荐理由:... \n - 买入区间:XX-XX\n - 目标价:XX-XX\n\n📊 附:今日市场概况(如有明显异动)\n\n⚠️ 逻辑检查(必须遵守):\n- 止损价 < 加仓价 < 现价 < 目标价 — 矛盾时这条建议不输出\n- 同一只股票同一区间只提醒一次\n- 状态变化(如从区间外进入区间内)才重新提醒\n- 当日第一轮要有完整分析,后续轮次只报告变化\n\n⚡ 数据来源:\n- 实时价格:调用 price_monitor.py 脚本获取(python3 /home/hmo/scripts/price_monitor.py 2>&1,解析---JSON_OUTPUT---后的JSON\n- 持仓数据:/home/hmo/Obsidian/knowledge/finance/dad-portfolio.md\n- 自选股数据和买入区间:/home/hmo/Obsidian/knowledge/finance/watchlist-buy-recommendations.md\n- 新闻:上网搜索相关股票今日新闻\n\n⏰ 交易时间注意:\n- A股可交易时间:9:30-11:30, 13:00-15:00\n- 港股可交易时间:9:30-12:00, 13:00-16:00\n- 非交易时段不生成价格分析\n\n## Response\n\n报告已生成并通过微信发送成功(HTTP 200)。\n\n**执行摘要:**\n- 🕐 2026-05-22 08:40 盘前第一轮完整报告已推送\n- 📊 监控14只持仓 + 10只自选股\n- 📉 整体偏弱:上涨4只 / 下跌10只\n- ⚠️ 重点风险:\n - **海博思创** 跌-6%至¥249.41,跌破止损位¥255,需警惕\n - **万科企业** 跌至¥2.70,持续探底\n - **诺德股份** 跌-6.26%\n- 🎯 买入区提醒:中芯国际H(¥74.20)已在买入区¥72-75内;华虹半导体(¥128)已在买入区¥125-130内;法拉电子(¥158.36)进入买入区上沿;腾讯(¥439)已跌破买入区¥444-450\n",
"stocks_mentioned": [],
"_id": "cron_5cc9e2c77a93_2026-05-22_08-41-43"
}