Files
MoFin/data/reports/cron_5cc9e2c77a93_2026-05-22_09-43-16.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.2 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.118125",
"summary": "**Job ID:** 5cc9e2c77a93\n**Run Time:** 2026-05-22 09:43:16\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 09:43:16\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✅ 09:40 持仓情报已推送。指令:POST至5801 → 状态200,发送成功。\n\n报告内容:第2轮(09:40)变化提醒\n- 【持仓】海博思创跌破止损²⁵⁵、紫金矿业进入加仓区、丘钛科技低于关键位\n- 【自选】比亚迪A进入买入区、腾讯低于买入区底部\n- 【异动】中芯国际/华虹/建滔/法拉电子涨幅>3%\n- 【快讯】5条相关个股新闻摘要\n\n今日首轮(08:40)已完成完整分析,本轮仅报告变化和新信息。\n",
"stocks_mentioned": [],
"_id": "cron_5cc9e2c77a93_2026-05-22_09-43-16"
}