macro

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Macroeconomic Data

宏观经济数据

Query real-time macroeconomic data through the Expert System API using natural language.
通过Expert System API使用自然语言查询实时宏观经济数据。

Rules

规则

  • If the API returns an error or empty results, tell the user plainly rather than guessing.
  • If no API key is configured, tell the user they need an API key to use Expert System and can get one at expert-system.starmode.dev/account/api-keys. Do not attempt the request without a key.
  • If the API returns a 401, the key may be invalid or expired. Direct the user to expert-system.starmode.dev/account/api-keys to check or regenerate their key.
  • Cross-reference with research. For deeper context on macro trends, also use the
    research
    skill to find related expert takeaways and analysis.
  • 若API返回错误或空结果,直接告知用户,不要猜测。
  • 若未配置API密钥,告知用户需要API密钥才能使用Expert System,可前往expert-system.starmode.dev/account/api-keys获取。无密钥时请勿尝试发起请求。
  • 若API返回401错误,可能是密钥无效或已过期。引导用户前往expert-system.starmode.dev/account/api-keys检查或重新生成密钥。
  • 结合研究内容。如需深入了解宏观趋势,可使用
    research
    技能查找相关专家观点和分析。

Authentication

认证

All requests require a Bearer token. Get an API key at: https://expert-system.starmode.dev/account/api-keys
Claude Code plugin users: Your API key is configured automatically when you enable the plugin. The key is available as
${user_config.api_key}
.
All other agents: Set the
EXPERT_SYSTEM_API_KEY
environment variable in your shell profile or
.env
file.
Include on all requests:
Authorization: Bearer <api_key>
所有请求均需Bearer token。获取API密钥请访问:https://expert-system.starmode.dev/account/api-keys
Claude Code插件用户:启用插件时会自动配置API密钥,密钥可通过
${user_config.api_key}
获取。
其他所有Agent:在shell配置文件或
.env
文件中设置
EXPERT_SYSTEM_API_KEY
环境变量。
所有请求需包含:
Authorization: Bearer <api_key>

Workflow

工作流程

  1. Query
    POST /query/macro
    with a natural-language question. The system queries the relevant economic data series.
  2. Present — Format clearly, highlighting trends and the specific indicators the user asked about.
  3. Enrich — Use the
    research
    skill to search for related expert analysis if it would add value.
Available data: GDP & real economy, labor market (unemployment, payrolls, JOLTS), inflation (CPI, PCE, trimmed-mean), wages & income, monetary policy & Fed liquidity, interest rates & yield curve, credit & financial stress, housing (starts, permits, prices, mortgage rates), and consumer sentiment.
  1. 查询 — 向
    POST /query/macro
    发送包含自然语言问题的请求。系统会查询相关经济数据序列。
  2. 展示 — 清晰格式化结果,突出用户询问的趋势和特定指标。
  3. 丰富内容 — 若能增加价值,使用
    research
    技能搜索相关专家分析。
可用数据包括:GDP与实体经济、劳动力市场(失业率、非农就业人数、JOLTS)、通货膨胀(CPI、PCE、截尾均值)、工资与收入、货币政策与美联储流动性、利率与收益率曲线、信贷与金融压力、住房(开工、许可、价格、抵押贷款利率)以及消费者信心。

API Reference

API参考

Base URL:
https://expert-system.starmode.dev/api/v1
基础URL:
https://expert-system.starmode.dev/api/v1

Macroeconomic Data —
POST /query/macro

宏观经济数据 —
POST /query/macro

Body:
{ "query": "what is the current unemployment rate" }
Returns structured economic data as JSON. Parse and format results clearly for the user's question.
请求体
{ "query": "what is the current unemployment rate" }
以JSON格式返回结构化经济数据。需解析结果并针对用户问题清晰格式化展示。