← Back to Skills Marketplace
arsars2234

宏观经济数据

by Arsars2234 · GitHub ↗ · v1.0.6 · MIT-0
cross-platform ✓ Security Clean
265
Downloads
0
Stars
2
Active Installs
6
Versions
Install in OpenClaw
/install macro-data-api
Description
查询货币供应量、汇率、利率和美元指数
README (SKILL.md)

\r \r

宏观经济数据查询 (Macro Data API)\r

\r 通过本技能可以查询:\r 货币供应量=MoneyStockMeasures\r 季节性调整=SeasonallyAdjusted\r 未经季节性调整=NotSeasonallyAdjusted\r 实时汇率及美元指数=exchangeRate\r 利率=InterestRate\r 影响存款机构准备金余额的因素(资产端),单位百万美元=FARBODI\r 影响存款机构准备金余额的因素(负债端),单位百万美元=FARBODIC\r 备忘录项目,单位百万美元=MI\r 到期债券分布,单位百万美元=MDOSLASOAAL\r 按揭,单位百万美元=SIOMS\r 主要信贷工具余额,单位百万美元=IOPAOCFL\r 所有联邦储备银行的综合报表(美联储资产负债表),单位百万美元=CSOCOAFRB\r 总资产(续),单位百万美元=CSOCOAFRBC\r 联邦储备银行状况说明,单位百万美元=SOCOEFRB\r 联邦储备银行状况说明(续),单位百万美元=SOCOEFRBC\r 联邦储备券对应的抵押品:联邦储备代理人的账户,单位百万美元=CHAFRNFRAA\r 美国商业银行的资产和负债年率(季节性调整后的)资产表=SAALOCBITUSS_ASSET\r 美国商业银行的资产和负债年率(季节性调整后的)负债表=SAALOCBITUSS_Liabilities\r 美国商业银行的资产和负债(季节性调整后的)资产表,单位十亿美元=AALOCBITUSS_ASSET\r 美国商业银行的资产和负债(季节性调整后的)负债表,单位十亿美元=AALOCBITUSS_Liabilities\r 美国商业银行的资产和负债(无季节性调整)资产表,单位十亿美元=AALOCBITUSNS_ASSET\r 美国商业银行的资产和负债(无季节性调整)负债表,单位十亿美元=AALOCBITUSNS_Liabilities\r 美国本土特许商业银行的资产和负债(季节性调整后的)资产表,单位十亿美元=AALODCCBITUSS_ASSET\r 美国本土特许商业银行的资产和负债(季节性调整后的)负债表,单位十亿美元=AALODCCBITUSS_Liabilities\r 美国本土特许商业银行的资产和负债(无季节性调整)资产表,单位十亿美元=AALODCCBITUSNS_ASSET\r 美国本土特许商业银行的资产和负债(无季节性调整)负债表,单位十亿美元=AALODCCBITUSNS_Liabilities\r 美国大型国内特许商业银行的资产和负债(季节性调整后的)资产表,单位十亿美元=AALOLDCCBITUSS_ASSET\r 美国大型国内特许商业银行的资产和负债(季节性调整后的)负债表,单位十亿美元=AALOLDCCBITUSS_Liabilities\r 美国大型国内特许商业银行的资产和负债(无季节性调整)资产表,单位十亿美元=AALOLDCCBITUSNS_ASSET\r 美国大型国内特许商业银行的资产和负债(无季节性调整)负债表,单位十亿美元=AALOLDCCBITUSNS_Liabilities\r 美国小型国内特许商业银行的资产和负债(季节性调整后的)资产表,单位十亿美元=AALOSDCCBITUSS_ASSET\r 美国小型国内特许商业银行的资产和负债(季节性调整后的)负债表,单位十亿美元=AALOSDCCBITUSS_Liabilities\r 美国小型国内特许商业银行的资产和负债(无季节性调整)资产表,单位十亿美元=AALOSDCCBITUSNS_ASSET\r 美国小型国内特许商业银行的资产和负债(无季节性调整)负债表,单位十亿美元=AALOSDCCBITUSNS_Liabilities\r 美国涉外机构的资产和负债(季节性调整后的)资产表,单位十亿美元=AALOFRIITUSS_ASSET\r 美国涉外机构的资产和负债(季节性调整后的)负债表,单位十亿美元=AALOFRIITUSS_Liabilities\r 美国涉外机构的资产和负债(无季节性调整)资产表,单位十亿美元=AALOFRIITUSNS_ASSET\r 美国涉外机构的资产和负债(无季节性调整)负债表,单位十亿美元=AALOFRIITUSNS_Liabilities\r 外汇储备=FER\r 贷款=Loan\r 国债收益率=USTreasuriesYields\r 国债规模=USTreasuriesSize\r 外国债券投资(各国当前美债持有数),单位十亿美元=FBI\r 个人消费支出,耐用消费品支出,非耐用消费品支出,服务消费支出=PCE\r 国内私人投资总额, 固定私人投资,私人库存变动=GPDI\r 商品和服务净出口,商品和服务进口,商品和服务出口=NETEXP\r 各行业对GDP的贡献=COVITGDP\r 人均GDP,平价购买力人均GDP=PCGDP\r 纽约联储-每周经济指数=WEI\r 生产者物价指数,消费价格指数=CPI_PPI\r \r \r

Macro API Skill\r

\r

Description\r

Fetch U.S. macroeconomic and financial data from your local FastAPI server.\r Supports default 1 record, custom limit, or date-based queries.\r \r

Base URL\r

http://10.168.1.162:8000\r \r

Usage Examples\r

\r

-------------------------------\r

Money Supply Tables\r

-------------------------------\r

\r

MoneyStockMeasures\r

查询最近 1 条 MoneyStockMeasures 数据\r

python3 skills/macro-data-api/macro_api.py MoneyStockMeasures\r \r

查询最近 5 条 MoneyStockMeasures 数据\r

python3 skills/macro-data-api/macro_api.py MoneyStockMeasures 5\r \r

查询指定日期 MoneyStockMeasures 数据\r

python3 skills/macro-data-api/macro_api.py MoneyStockMeasures 2026-03-31\r \r

SeasonallyAdjusted\r

查询最近 1 条 SeasonallyAdjusted 数据\r

python3 skills/macro-data-api/macro_api.py SeasonallyAdjusted\r \r

查询最近 5 条 SeasonallyAdjusted 数据\r

python3 skills/macro-data-api/macro_api.py SeasonallyAdjusted 5\r \r

查询指定日期 SeasonallyAdjusted 数据\r

python3 skills/macro-data-api/macro_api.py SeasonallyAdjusted 2026-03-31\r \r

NotSeasonallyAdjusted\r

查询最近 1 条 NotSeasonallyAdjusted 数据\r

python3 skills/macro-data-api/macro_api.py NotSeasonallyAdjusted\r \r

查询最近 5 条 NotSeasonallyAdjusted 数据\r

python3 skills/macro-data-api/macro_api.py NotSeasonallyAdjusted 5\r \r

查询指定日期 NotSeasonallyAdjusted 数据\r

python3 skills/macro-data-api/macro_api.py NotSeasonallyAdjusted 2026-03-31\r \r

-------------------------------\r

Exchange Rate Tables\r

-------------------------------\r

\r

ExchangeRate\r

查询最近 1 条 ExchangeRate 数据\r

python3 skills/macro-data-api/macro_api.py ExchangeRate\r \r

查询最近 5 条 ExchangeRate 数据\r

python3 skills/macro-data-api/macro_api.py ExchangeRate 5\r \r

查询指定日期 ExchangeRate 数据\r

python3 skills/macro-data-api/macro_api.py ExchangeRate 2026-03-31\r \r

-------------------------------\r

Interest Rate Tables\r

-------------------------------\r

\r

InterestRate\r

查询最近 1 条 InterestRate 数据\r

python3 skills/macro-data-api/macro_api.py InterestRate\r \r

查询最近 5 条 InterestRate 数据\r

python3 skills/macro-data-api/macro_api.py InterestRate 5\r \r

查询指定日期 InterestRate 数据\r

python3 skills/macro-data-api/macro_api.py InterestRate 2026-03-31\r \r

-------------------------------\r

FARBODI Tables\r

-------------------------------\r

\r

FARBODI\r

python3 skills/macro-data-api/macro_api.py FARBODI\r python3 skills/macro-data-api/macro_api.py FARBODI 5\r python3 skills/macro-data-api/macro_api.py FARBODI 2026-03-31\r \r

FARBODIC\r

python3 skills/macro-data-api/macro_api.py FARBODIC\r python3 skills/macro-data-api/macro_api.py FARBODIC 5\r python3 skills/macro-data-api/macro_api.py FARBODIC 2026-03-31\r \r

-------------------------------\r

MI Table\r

-------------------------------\r

python3 skills/macro-data-api/macro_api.py MI\r python3 skills/macro-data-api/macro_api.py MI 5\r python3 skills/macro-data-api/macro_api.py MI 2026-03-31\r \r

-------------------------------\r

SIOMS Table\r

-------------------------------\r

python3 skills/macro-data-api/macro_api.py SIOMS\r python3 skills/macro-data-api/macro_api.py SIOMS 5\r python3 skills/macro-data-api/macro_api.py SIOMS 2026-03-31\r \r

-------------------------------\r

IOPAOCFL Table\r

-------------------------------\r

python3 skills/macro-data-api/macro_api.py IOPAOCFL\r python3 skills/macro-data-api/macro_api.py IOPAOCFL 5\r python3 skills/macro-data-api/macro_api.py IOPAOCFL 2026-03-31\r \r

-------------------------------\r

CSOCOAFRB Table\r

-------------------------------\r

python3 skills/macro-data-api/macro_api.py CSOCOAFRB\r python3 skills/macro-data-api/macro_api.py CSOCOAFRB 5\r python3 skills/macro-data-api/macro_api.py CSOCOAFRB 2026-03-31\r \r

-------------------------------\r

CSOCOAFRBC Table\r

-------------------------------\r

python3 skills/macro-data-api/macro_api.py CSOCOAFRBC\r python3 skills/macro-data-api/macro_api.py CSOCOAFRBC 5\r python3 skills/macro-data-api/macro_api.py CSOCOAFRBC 2026-03-31\r \r

-------------------------------\r

SOCOEFRB Table\r

-------------------------------\r

python3 skills/macro-data-api/macro_api.py SOCOEFRB\r python3 skills/macro-data-api/macro_api.py SOCOEFRB 5\r python3 skills/macro-data-api/macro_api.py SOCOEFRB 2026-03-31\r \r

-------------------------------\r

SOCOEFRBC Table\r

-------------------------------\r

python3 skills/macro-data-api/macro_api.py SOCOEFRBC\r python3 skills/macro-data-api/macro_api.py SOCOEFRBC 5\r python3 skills/macro-data-api/macro_api.py SOCOEFRBC 2026-03-31\r \r

-------------------------------\r

CHAFRNFRAA Table\r

-------------------------------\r

python3 skills/macro-data-api/macro_api.py CHAFRNFRAA\r python3 skills/macro-data-api/macro_api.py CHAFRNFRAA 5\r python3 skills/macro-data-api/macro_api.py CHAFRNFRAA 2026-03-31\r \r

-------------------------------\r

PCE Table\r

-------------------------------\r

python3 skills/macro-data-api/macro_api.py PCE\r python3 skills/macro-data-api/macro_api.py PCE 5\r python3 skills/macro-data-api/macro_api.py PCE 2026-03-31\r \r

-------------------------------\r

GPDI Table\r

-------------------------------\r

python3 skills/macro-data-api/macro_api.py GPDI\r python3 skills/macro-data-api/macro_api.py GPDI 5\r python3 skills/macro-data-api/macro_api.py GPDI 2026-03-31\r \r

-------------------------------\r

NETEXP Table\r

-------------------------------\r

python3 skills/macro-data-api/macro_api.py NETEXP\r python3 skills/macro-data-api/macro_api.py NETEXP 5\r python3 skills/macro-data-api/macro_api.py NETEXP 2026-03-31\r \r

-------------------------------\r

COVITGDP Table\r

-------------------------------\r

python3 skills/macro-data-api/macro_api.py COVITGDP\r python3 skills/macro-data-api/macro_api.py COVITGDP 5\r python3 skills/macro-data-api/macro_api.py COVITGDP 2026-03-31\r \r

-------------------------------\r

PCGDP Table\r

-------------------------------\r

python3 skills/macro-data-api/macro_api.py PCGDP\r python3 skills/macro-data-api/macro_api.py PCGDP 5\r python3 skills/macro-data-api/macro_api.py PCGDP 2026-03-31\r \r

-------------------------------\r

WEI Table\r

-------------------------------\r

python3 skills/macro-data-api/macro_api.py WEI\r python3 skills/macro-data-api/macro_api.py WEI 5\r python3 skills/macro-data-api/macro_api.py WEI 2026-03-31\r \r

-------------------------------\r

CPI_PPI Table\r

-------------------------------\r

python3 skills/macro-data-api/macro_api.py CPI_PPI\r python3 skills/macro-data-api/macro_api.py CPI_PPI 5\r python3 skills/macro-data-api/macro_api.py CPI_PPI 2026-03-31\r

Usage Guidance
This skill appears to do what it says: run a local Python script that queries a FastAPI server on the local network. Before installing or running it: (1) inspect/confirm the BASE_URL (http://10.168.1.162:8000) — if you do not host a trusted service at that address, the skill would contact an internal host you may not expect; (2) ensure Python's 'requests' library is available or install it (pip install requests); (3) consider editing the script to make BASE_URL configurable via an environment variable rather than a hardcoded IP so you can point it to a safe/expected endpoint; (4) if you run agents on networks with sensitive internal services, be careful because this skill issues network requests to private addresses when invoked. These are operational cautions, not indicators of malware.
Capability Assessment
Purpose & Capability
Name/description (query macroeconomic data from a local FastAPI server) align with the included Python script and examples. The skill only needs python3 to run the provided macro_api.py which calls table endpoints listed in ALLOWED_ENDPOINTS.
Instruction Scope
SKILL.md instructs running the included script to call a base URL on the local network (http://10.168.1.162:8000) and shows many example endpoints. The instructions do not request other files, environment variables, or secrets. Note: base URL is hardcoded to a private IP rather than configurable, which limits flexibility and could cause the agent to contact an unexpected internal host if the network differs.
Install Mechanism
There is no install spec (instruction-only), which minimizes install-time risk. However, the Python code uses the third-party 'requests' library but the skill does not declare that dependency; the runtime may fail or require installing that package beforehand.
Credentials
No environment variables or credentials are requested or used, which is proportionate. One omission: BASE_URL is not exposed as a configurable env var, so users cannot easily change the target host without editing the file.
Persistence & Privilege
The skill is not always-enabled and does not request persistent or cross-skill privileges. It does perform outbound HTTP calls when invoked, which is expected behavior for its purpose.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install macro-data-api
  3. After installation, invoke the skill by name or use /macro-data-api
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.6
- Updated the API base URL from http://10.168.1.162:5000 to http://10.168.1.162:8000 in documentation. - No functional or code changes detected. Documentation only.
v1.0.5
Major update: Expanded data coverage and documentation for macro-data-api. - Added support for querying a wide range of new macroeconomic and financial datasets, including利率 (interest rates),商业银行资产负债表,国债,外汇储备,消费支出,投资,进出口等. - SKILL.md now provides an extensive, categorized list of all supported data types and their respective query commands. - Documentation includes detailed usage instructions and real command-line examples for each table. - Original descriptions (货币供应量、汇率和美元指数) expanded to reflect new data types. - Improved clarity and completeness of documentation for both Chinese and English users.
v1.0.4
- Added display_name for improved skill identification. - Expanded and clarified documentation with detailed usage instructions and endpoints. - Updated metadata with a new emoji and explicit environment requirements.
v1.0.2
- Added initial code file macro_api.py for API interaction. - Enhanced documentation: updated SKILL.md with usage instructions, examples, and API details. - No breaking changes; this version introduces the base implementation for querying macroeconomic data via API.
v1.0.1
- Updated all example API endpoints to use the base address "http://10.168.1.162:5000" instead of "http://127.0.0.1:5000" - Removed local server instructions for API base address to standardize usage - No changes to API logic or functionality; documentation improvements only
v1.0.0
macro-data-api 1.0.0 初始版本发布 - 支持通过 API 查询货币供应量(含季调、未季调)、主要汇率及美元指数 - 查询结果包括原始 JSON 和中文简要解释 - 提供标准化接口用法和查询规则,方便使用 - 输出示例帮助明确格式与解读要求
Metadata
Slug macro-data-api
Version 1.0.6
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 6
Frequently Asked Questions

What is 宏观经济数据?

查询货币供应量、汇率、利率和美元指数. It is an AI Agent Skill for Claude Code / OpenClaw, with 265 downloads so far.

How do I install 宏观经济数据?

Run "/install macro-data-api" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 宏观经济数据 free?

Yes, 宏观经济数据 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 宏观经济数据 support?

宏观经济数据 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 宏观经济数据?

It is built and maintained by Arsars2234 (@arsars2234); the current version is v1.0.6.

💬 Comments