Market Briefing
Time-aware market intelligence workflow. Detects current time → selects briefing mode → searches news → deduplicates → delivers via Feishu.
Prerequisites
- -
mcporter CLI with tavily-remote-mcp MCP server configured - Feishu
message tool available - Workspace
memory/ directory writable
Step 1 — Detect Time & Select Mode
Get current Beijing time and select mode:
| Time | Mode |
|---|
| 09:00 | Morning briefing — overnight US markets + today's investment direction |
| 10:00–15:00 |
Incremental update — new items only, skip duplicates |
| 16:00 |
Closing daily report — full-day recap + tomorrow's outlook |
Step 2 — Read Today's Dedup Log
CODEBLOCK0
⚠️ Use absolute paths, not ~: cron jobs run in an isolated environment where ~ may expand to an unexpected home directory. Always use the full absolute path to your workspace (e.g. /Users/yourname/.openclaw/workspace-invest/memory/).
This file contains summaries of already-pushed items. Use it to filter duplicates in Step 4.
Step 3 — Search Latest News
Run all 6 searches sequentially (Tavily rate limits make parallel risky):
CODEBLOCK1
Supplement with web_fetch for real-time data:
- -
https://www.cls.cn/telegraph — 财联社电报 - INLINECODE9 — 金十数据
Step 4 — Deduplicate
Compare results against Step 2 log. Skip items where core facts/keywords overlap >70% with already-reported items. Only keep genuinely new information.
If running incremental mode (10:00–15:00) and nothing new: reply 「本时段暂无重要增量信息,市场平稳运行中。」 and skip delivery.
Step 5 — Compose Briefing by Mode
See references/briefing-template.md for full format templates. Summary:
Morning (09:00): Overnight US markets → key overnight news → today's investment direction (sectors to watch, risks, 1–2 stock references)
Incremental (10:00–15:00): Only new items, grouped by category (A股/港股/特朗普政策/军事地缘). No repeats.
Closing (16:00): Full-day recap for A股+港股+US markets + Trump/policy/military summaries → tomorrow's outlook with 2–3 stock references.
Step 6 — Update Dedup Log
Append pushed items to the log (one line per item):
CODEBLOCK2
Step 7 — Deliver via Feishu
Send to the configured Feishu target using the message tool. Target is either a direct user or a group chat — configure in your workspace MEMORY.md or TOOLS.md.
CODEBLOCK3
Configuration
| Setting | Where | Notes |
|---|
| Feishu target chat | workspace INLINECODE15 | Group chat ID or omit for DM |
| Topics / search queries |
references/topics.md | Add/remove/translate topics |
| Briefing templates |
references/briefing-template.md | Format per mode |
| Schedule |
openclaw cron add | Recommended:
cron 0 9-16 * * 1-5 (Asia/Shanghai) |
Fallback
If mcporter / Tavily unavailable, use web_fetch:
- -
https://finance.sina.com.cn — A股 - INLINECODE23 — 港股
- INLINECODE24 — 宏观/政策
Notes
- - Never include personal portfolio holdings or account tokens in shared configs.
- All content is for reference only; does not constitute investment advice (⚠️ always append disclaimer).
市场简报
具备时间感知的市场情报工作流。检测当前时间 → 选择简报模式 → 搜索新闻 → 去重 → 通过飞书推送。
前置条件
- - 已配置 tavily-remote-mcp MCP 服务器的 mcporter 命令行工具
- 飞书 message 工具可用
- 工作区 memory/ 目录可写入
步骤 1 — 检测时间并选择模式
获取当前北京时间并选择模式:
| 时间 | 模式 |
|---|
| 09:00 | 早间简报 — 隔夜美股市场 + 今日投资方向 |
| 10:00–15:00 |
增量更新 — 仅新内容,跳过重复项 |
| 16:00 |
收盘日报 — 全天回顾 + 明日展望 |
步骤 2 — 读取今日去重日志
bash
cat /path/to/your/workspace/memory/reported-news-$(date +%Y-%m-%d).txt 2>/dev/null || echo 今日首次运行
⚠️ 使用绝对路径,不要用 ~:cron 任务在隔离环境中运行,~ 可能解析到意外的家目录。请始终使用工作区的完整绝对路径(例如 /Users/yourname/.openclaw/workspace-invest/memory/)。
该文件包含已推送内容的摘要。用于在步骤 4 中过滤重复项。
步骤 3 — 搜索最新新闻
依次执行全部 6 项搜索(Tavily 有速率限制,并行存在风险):
bash
mcporter call tavily-remote-mcp.tavilysearch query=A股 今日行情 最新 timerange=day
mcporter call tavily-remote-mcp.tavilysearch query=港股 恒生指数 今日 timerange=day
mcporter call tavily-remote-mcp.tavilysearch query=特朗普 最新动态 timerange=day
mcporter call tavily-remote-mcp.tavilysearch query=中国军事 地缘政治 最新 timerange=day
mcporter call tavily-remote-mcp.tavilysearch query=美股 道指 纳指 标普 最新 timerange=day
mcporter call tavily-remote-mcp.tavilysearch query=中国经济政策 最新 timerange=day
使用 web_fetch 补充实时数据:
- - https://www.cls.cn/telegraph — 财联社电报
- https://www.jin10.com/ — 金十数据
步骤 4 — 去重
将结果与步骤 2 的日志进行比对。跳过核心事实/关键词与已报告内容重叠超过 70% 的条目。仅保留真正的新信息。
如果运行增量模式(10:00–15:00)且无新内容:回复 「本时段暂无重要增量信息,市场平稳运行中。」 并跳过推送。
步骤 5 — 按模式撰写简报
完整格式模板请参见 references/briefing-template.md。概要:
早间(09:00): 隔夜美股市场 → 隔夜重要新闻 → 今日投资方向(关注板块、风险、1–2 只个股参考)
增量(10:00–15:00): 仅新内容,按类别分组(A股/港股/特朗普政策/军事地缘)。不重复。
收盘(16:00): A股+港股+美股市场全天回顾 + 特朗普/政策/军事摘要 → 明日展望,附 2–3 只个股参考。
步骤 6 — 更新去重日志
将已推送内容追加到日志(每项一行):
bash
使用绝对路径 — 避免在 cron 环境中使用 ~
echo [HH:MM] 消息摘要(30字以内) >> /path/to/workspace/memory/reported-news-$(date +%Y-%m-%d).txt
步骤 7 — 通过飞书推送
使用 message 工具发送到已配置的飞书目标。目标可以是直接用户或群聊——在工作区的 MEMORY.md 或 TOOLS.md 中配置。
channel: feishu
target: chat: # 或省略以使用默认私信
message: <简报内容>
配置
| 设置项 | 位置 | 说明 |
|---|
| 飞书目标聊天 | 工作区 MEMORY.md | 群聊 ID,或省略以使用私信 |
| 主题/搜索查询 |
references/topics.md | 添加/删除/翻译主题 |
| 简报模板 | references/briefing-template.md | 按模式格式化 |
| 定时任务 | openclaw cron add | 推荐:cron 0 9-16
1-5(亚洲/上海时区) |
备用方案
若 mcporter / Tavily 不可用,使用 web_fetch:
- - https://finance.sina.com.cn — A股
- https://www.aastocks.com — 港股
- https://www.caixin.com — 宏观/政策
注意事项
- - 切勿在共享配置中包含个人投资组合持仓或账户令牌。
- 所有内容仅供参考,不构成投资建议(⚠️ 始终附上免责声明)。