Skill: Economic Calendar
When to use
- - The user wants the economic calendar for today, this week, or a custom date range.
- The user asks for upcoming macro events, scheduled releases, or high/medium/low impact events.
- The user wants a forward-looking list of calendar items before trading.
When NOT to use
- - The user wants broad market news and sentiment only -> use INLINECODE0
- The user wants a stock price or company-specific quote -> use INLINECODE1
- The user wants company fundamentals -> use INLINECODE2
Authentication
- - Preferred: set
TRADING_ECONOMICS_API_KEY to your TradingEconomics credential string - Supported value format: INLINECODE4
- Optional: copy
.env.example to .env at the repo root and fill in INLINECODE7 - Fallback: if no API key is present, the script uses Yahoo Finance's economic calendar endpoint
- Important: Yahoo fallback can omit importance and market-expectation fields, and country values are returned as short codes like
US, EU, or INLINECODE10
Commands
Get the default calendar window
CODEBLOCK0
Defaults to 7 days inclusive from the query day.
Get a custom calendar window
CODEBLOCK1
Dates must use YYYY-MM-DD.
Examples
CODEBLOCK2
Output
The command returns:
- - Requested date range
- Auth source used (
TradingEconomics API or Yahoo Finance fallback) - Total event count and covered day count
- Events grouped by day
- For each event: UTC time, country, event name, and available actual / forecast / previous values
Notes
- - The script reads
TRADING_ECONOMICS_API_KEY from the environment first. - If no env var is set, it also checks a repo-root
.env file before falling back to Yahoo Finance. - Yahoo fallback is better than guest TradingEconomics for current/future windows, but it does not expose the same richness of metadata.
- Do NOT use the
economic-calendar-pro.sh wrapper in normal skill execution - call uv run src/main.py directly as shown above. - Do NOT use web search for this workflow - use the script so the output is date-filtered and formatted consistently.
技能:经济日历
使用场景
- - 用户需要获取今日、本周或自定义日期范围的经济日历
- 用户询问即将发生的宏观事件、预定发布数据或高/中/低影响力事件
- 用户希望在交易前查看前瞻性的日历项目列表
不使用场景
- - 用户仅需广泛的市场新闻和情绪分析 → 使用 market-news-brief
- 用户需要股票价格或特定公司报价 → 使用 stock-price-checker-pro
- 用户需要公司基本面数据 → 使用 stock-fundamentals
认证方式
- - 推荐:将 TRADINGECONOMICSAPIKEY 设置为您的 TradingEconomics 凭证字符串
- 支持的格式:client:secret
- 可选:将仓库根目录下的 .env.example 复制为 .env 并填写 TRADINGECONOMICSAPIKEY
- 备用方案:若无 API 密钥,脚本将使用雅虎财经的经济日历接口
- 重要提示:雅虎备用方案可能省略重要性和市场预期字段,国家/地区将以 US、EU 或 JP 等短代码形式返回
命令
获取默认日历窗口
bash
uv run /root/.openclaw/workspace/skills/economic-calendar-pro/src/main.py
默认从查询日期起包含未来7天。
获取自定义日历窗口
bash
uv run /root/.openclaw/workspace/skills/economic-calendar-pro/src/main.py <开始日期> <结束日期>
日期必须使用 YYYY-MM-DD 格式。
示例
bash
默认窗口:查询日期加未来6天
uv run /root/.openclaw/workspace/skills/economic-calendar-pro/src/main.py
从指定日期开始,包含未来7天
uv run /root/.openclaw/workspace/skills/economic-calendar-pro/src/main.py 2026-03-10
明确指定日期范围
uv run /root/.openclaw/workspace/skills/economic-calendar-pro/src/main.py 2026-03-10 2026-03-24
输出内容
命令返回:
- - 请求的日期范围
- 使用的认证来源(TradingEconomics API 或 雅虎财经备用方案)
- 事件总数和覆盖天数
- 按日期分组的事件
- 每个事件包含:UTC时间、国家/地区、事件名称、以及可用的实际值/预测值/前值
注意事项
- - 脚本首先从环境变量读取 TRADINGECONOMICSAPI_KEY
- 若未设置环境变量,将在回退至雅虎财经前检查仓库根目录下的 .env 文件
- 对于当前/未来窗口,雅虎备用方案优于访客版 TradingEconomics,但元数据丰富度较低
- 正常技能执行时请勿使用 economic-calendar-pro.sh 包装脚本——直接按上述方式调用 uv run src/main.py
- 此工作流程无需使用网络搜索——使用脚本可确保输出按日期过滤且格式统一