微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🗓️

全球宏观经济事件一手掌握

Economic Calendar Pro · v0.1.2
效率 安全 B 级 作者 youpele52 公开目录收录
1k 下载 0 安装 5.1k 收藏 21 浏览

简介

获取全球宏观经济日历数据,支持 TradingEconomics 专业 API 与 Yahoo Finance 双源 fallback,可定制日期范围与定时推送。

原始描述

Run a local script to fetch economic calendar events for a date range. Defaults to 7 days inclusive from the query day. Uses TradingEconomics when TRADING_EC...

通过你的 Agent 添加

安装目录:economic-calendar-pro/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/economic-calendar-pro/
Codex CLI~/.codex/skills/economic-calendar-pro/
DeepSeek Harness~/.agents/skills/economic-calendar-pro/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

Economic Calendar Pro 是一款面向交易者和宏观经济分析者的专业日历工具,通过本地脚本获取全球重要经济事件发布时间表。默认查询范围为当日起连续 7 天,支持自定义起止日期(YYYY-MM-DD 格式)。

双源数据架构是其显著特点:优先使用 TradingEconomics 专业 API(需配置 TRADING_ECONOMICS_API_KEY),认证格式为 client:secret;未认证时自动降级至 Yahoo Finance 公开端点,确保服务可用性。输出包含事件 UTC 时间、国家/地区、事件名称及实际值/预测值/前值(如有)。

定时推送功能通过与 remind-me 技能联动实现,支持按用户指定时区、时间、频率(如工作日 10 AM CET)创建自动化 briefing,适合盘前例行宏观扫描。

显著优点

  • 专业级数据源:TradingEconomics 覆盖 180+ 国家、数千项指标,重要性分级清晰
  • 高可用设计:API 失效时无缝切换 Yahoo Finance,避免服务中断
  • 灵活调度:支持单次查询与自动化 cron 任务,适配交易前准备、风险管理等场景
  • 结构化输出:按日期分组、含市场预期数据,便于快速识别高影响力事件

潜在缺点与局限性

  • Yahoo 降级损失:fallback 模式下缺少重要性标签、市场预期字段,国家代码简化为 US/EU/JP 等,信息完整度下降
  • 认证门槛:TradingEconomics 需付费订阅获取 API key,免费用户依赖降级源
  • 时区处理:事件时间统一输出 UTC,需用户自行转换本地交易时段
  • 无历史回溯:主要面向未来事件,不适用于历史日历分析

适合人群

  • 外汇/期货/宏观策略交易者
  • 全球资产配置研究员
  • 需要盘前经济事件预警的量化团队

常规风险

  • 市场预期偏差:日历数据不含事件解读,高重要性事件实际值与预期偏离可能引发市场剧烈波动
  • 数据源延迟:Yahoo fallback 可能存在分钟级延迟,对高频交易场景不适用
  • API 配额限制:TradingEconomics 免费 tier 有调用次数上限,大规模部署需评估成本
  • 定时任务累积:频繁创建 cron 未清理可能导致消息过载,建议定期 remind-me list 审查

技能正文


name: economic-calendar-pro description: "Run a local script to fetch economic calendar events for a date range. Defaults to 7 days inclusive from the query day. Uses TradingEconomics when TRADING_ECONOMICS_API_KEY is present and falls back to Yahoo Finance otherwise." homepage: https://docs.tradingeconomics.com/economic_calendar/snapshot/ metadata: {"clawdbot":{"emoji":"🗓️","requires":{"bins":["uv"]}}}

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 market-news-brief
  • The user wants a stock price or company-specific quote -> use stock-price-checker-pro
  • The user wants company fundamentals -> use stock-fundamentals

Authentication

  • Preferred: set TRADING_ECONOMICS_API_KEY to your TradingEconomics credential string
  • Supported value format: client:secret
  • Optional: copy .env.example to .env at the repo root and fill in TRADING_ECONOMICS_API_KEY
  • 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 JP

Commands

Get the default calendar window

uv run /root/.openclaw/workspace/skills/economic-calendar-pro/src/main.py

Defaults to 7 days inclusive from the query day.

Get a custom calendar window

uv run /root/.openclaw/workspace/skills/economic-calendar-pro/src/main.py <START_DATE> <END_DATE>

Dates must use YYYY-MM-DD.

Examples

# Default window: query day plus the next 6 days
uv run /root/.openclaw/workspace/skills/economic-calendar-pro/src/main.py

# Start from a specific day and use 7 days inclusive
uv run /root/.openclaw/workspace/skills/economic-calendar-pro/src/main.py 2026-03-10

# Explicit date range
uv run /root/.openclaw/workspace/skills/economic-calendar-pro/src/main.py 2026-03-10 2026-03-24

Scheduling

Use this flow when the user wants to schedule a recurring daily economic calendar briefing (e.g. "send me the economic calendar every day at 11 AM CET"). For one-time ad-hoc queries, use the Commands section above.

Scheduling flow

Step 1 — Resolve time and timezone

Ask the user two things. Apply defaults if they do not specify.

Question Default Options
At what time? 10 AM CET (Europe/Paris) Any time in any timezone
Which days? Weekdays (Mon–Fri) Any combination of days

Examples of user input and how to parse it:

  • "every day at 8 AM New York time" → hour=8, minute=0, tz=America/New_York, cron=cron:0 8 * * *
  • "weekdays at 9 AM London" → hour=9, minute=0, tz=Europe/London, cron=cron:0 9 * * 1-5
  • "just use defaults" → hour=10, minute=0, tz=Europe/Paris, cron=cron:0 10 * * 1-5
  • (no time given) → apply defaults, confirm with user

Always confirm before proceeding. Summarise:

Got it! Here's what I'll set up: 🗓️ Economic Calendar briefing ⏰ Time: 10:00 AM CET (Europe/Paris) 📅 Days: Weekdays (Mon–Fri) 📱 Delivered to: This chat

Shall I go ahead?

Step 2 — Create the daily cron via remind-me
uv run /root/.openclaw/workspace/skills/remind-me/src/main.py create \
  "Economic Calendar - Weekdays <HH:MM>" \
  "Run: uv run /root/.openclaw/workspace/skills/economic-calendar-pro/src/main.py\nSend the formatted economic calendar briefing to this chat." \
  "cron:<MINUTE> <HOUR> * * <DAYS>" \
  "<channel>" \
  "<chatId>" \
  "tz:<IANA timezone>"

⚠️ Critical: Channel, chatId, and timezone resolution follow the same rules as remind-me (see its SKILL.md). Auto-detect from session context. Never ask the user for these.

Step 3 — Confirm completion

After the cron is created, report back:

✅ Done! Your economic calendar briefing is set up: 🗓️ Briefing: Daily economic calendar ⏰ Time: 10:00 AM CET (Europe/Paris) 📅 Days: Weekdays (Mon–Fri) 📱 Delivered to: This chat 🔍 Manage: Use remind-me list to view or remind-me cancel to stop

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 web search for this workflow - use the script so the output is date-filtered and formatted consistently.
  • For recurring daily briefings, use the Scheduling flow above (creates a cron via remind-me).

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

macrotradingcalendareconomicsforexscheduled-tasksapi-integrationmarket-data

同类 Skill