fxmacrodata
它能做什么
这个工具可以获取多个国家的官方经济数据,比如通货膨胀率、失业率以及央行政策决定。它还提供汇率和投资者持仓信息。
适用场景
- ✓想了解某个国家官方通货膨胀率时。
- ✓想知道央行何时公布决议时。
- ✓想比较两个国家的利率时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/fxmacrodata/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“美国最近一个已公布月份的官方失业率是多少?”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会查询官方经济数据源。它会根据你指定的国家和数据类型(比如通胀或利率),查找相应的具体信息。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
FXMacroData: Macro and FX Data
Overview
FXMacroData is a REST API for macroeconomic data taken from official publishers (statistics offices, central banks, the CFTC). It covers 22 currencies: AUD, BRL, CAD, CHF, CNH, CNY, DKK, EUR, GBP, HUF, ILS, JPY, KRW, MYR, NGN, NOK, NZD, PEN, SEK, THB, TWD and USD. Each series carries its publisher, source URL and the time the number was released, so answers can cite where a figure came from and when it became public.
This skill covers discovering indicator slugs, pulling release history, reading the release calendar, comparing policy rates between two currencies, and the access limits that apply without an API key.
When to Use
- Use when the user asks for an official macro figure for a country or currency: CPI, core inflation, GDP, unemployment, payrolls, retail sales, business and consumer confidence, trade balance, bond yields.
- Use when the user asks when the next CPI, payrolls, GDP or central-bank decision is due, or wants the release calendar for a week.
- Use when comparing central-bank policy rates or yield differentials between two currencies (for example USD vs JPY carry).
- Use when the user wants daily FX reference rates or CFTC Commitments of Traders positioning for a currency future.
- Do not use for intraday tick data, equities, crypto, or order execution. This is read-only reference data.
Access and Authentication
- Base URL:
https://api.fxmacrodata.com/v1 - Authentication is optional. If the user has a key, read it from the
FXMACRODATA_API_KEYenvironment variable and send it in theX-API-Keyheader. Never put the key in the URL or print it in output. - Without a key:
- USD indicators, the USD release calendar, the USD data catalogue and USD COT data work.
- USD announcement data is delayed by 15 minutes. Each response includes a
freemium_delayobject with the cutoff time andwithheld_count, the number of releases newer than the cutoff. - History is limited to the most recent 90 days. The
freemium_windowobject shows the applied cutoff date, andrequested_start_datein the response shows the start date actually used.
- Every other currency,
/forex,/rate_differentialsand/commoditiesneed a key. Without one they return HTTP 401 with"code": "api_key_required". That means the data exists but needs a subscription; do not report it as missing.
# Keyless (USD only)
curl -s "https://api.fxmacrodata.com/v1/announcements/usd/policy_rate?limit=3"
# With a key, from the environment
curl -s -H "X-API-Key: $FXMACRODATA_API_KEY" \
"https://api.fxmacrodata.com/v1/announcements/eur/policy_rate?limit=3"
Endpoints
| Endpoint | Purpose | Keyless |
|---|---|---|
GET /data_catalogue/{currency} |
Every indicator slug for a currency, with name, unit, frequency, source and coverage | Yes (all currencies) |
GET /announcements/{currency}/{indicator} |
Release history for one indicator, most recent first | USD only |
GET /announcements/{currency}/latest |
Latest value of every indicator for a currency | USD only |
GET /calendar/{currency} |
Upcoming scheduled releases with UTC timestamps | USD only |
GET /cot/{currency} |
Weekly CFTC COT positioning (AUD, CAD, CHF, EUR, GBP, JPY, MXN, NZD, USD, XAU) | USD only |
GET /forex/{base}/{quote} |
Daily FX reference rates | No |
GET /rate_differentials/{base}/{quote} |
Aligned rate spread between two currencies in percentage points and basis points | No |
Currency codes and indicator slugs are lowercase in paths (usd, policy_rate).
Common query parameters
| Parameter | Endpoints | Notes |
|---|---|---|
start_date, end_date |
announcements, calendar, cot, forex, rate_differentials | YYYY-MM-DD, inclusive |
limit, offset, page |
announcements, cot, forex, rate_differentials | Rows are most recent first. Default limit is 20 |
timezone |
calendar | IANA name such as Europe/London; adds an announcement_datetime_requested_timezone field |
indicator |
calendar | Filter the calendar to one slug |
revisions |
announcements | latest, first, final or all, where supported |
measure |
rate_differentials | auto, policy_rate, risk_free_rate, gov_bond_2y, gov_bond_10y |
Response shape
Announcement responses carry metadata (source, source_url, source_series_name, seasonal_adjustment, pagination) and a data array. Each row has:
…
常见问题
什么是“指标代码”(indicator slugs)?
这是用来标识每种经济数据的简短代码,比如用 inflation 表示通胀,用 unemployment 表示失业。它们和我们日常使用的通用名称不同。
我能查询任何国家的数据吗?
这个工具覆盖 22 种货币,包括美元(USD)、欧元(EUR)和巴西雷亚尔(BRL)。不过,一些较新的数据或特定货币的数据可能需要付费订阅。
数据是实时的吗?
美元(USD)的数据可能会有最多 15 分钟的延迟。其他货币或更具体的数据类型可能需要付费订阅,且不一定是实时的。
详情
作者的原始描述
Query FXMacroData for official-source macro indicators, release calendars, central-bank policy rates, FX rates and CFTC positioning across 22 currencies.
热度
- GitHub 星标
- 48k
- 排名
- #4680
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。