已暴露为 MCP 工具:
macro_indicator_search + macro_indicator_history —— 在 Claude / Cursor / 任意 MCP 客户端中直接调用。详见 MCP Server 60 秒配置。它为 Agent 做什么
macro_indicator_history 返回单个支持的美国宏观指标(CPI、UNRATE、Fed Funds、10Y 收益率、GDP 等)的 latest-vintage 历史时间序列 —— 一组 { date, value, realtime_start, realtime_end } observation。它是 agent 的 宏观时间序列拉取器:要把过去 5 年通胀画图、要算收益率曲线斜率、要把 observation 喂下游模型时调它。
canonical 的 agent 流程是两步:先调 macro_indicator_search(免费)找到正确的 indicator alias,再调 macro_indicator_history 拉序列。两种查询模式:
- Recent 模式 —— 传
limit(默认60)取最近 N 个 observation。 - Range 模式 —— 传
start_date + end_date取一个固定窗口。
Agent flow
返回值
MacroHistorical
required
指标元信息 + observations 数组。
number
固定
1。number
账户剩余 credit。
200 OK · macro_indicator_history
每条 series 在
data 下都带有自己的 attribution 字符串(FRED 来源说明)—— 展示数据时请一并呈现。本产品使用 FRED® API,但未经 Federal Reserve Bank of St. Louis 背书或认证。说明
直接调用
HTTP / SDK 示例
HTTP / SDK 示例
完整参数参考
macro_indicator_search — 请求参数
macro_indicator_search — 请求参数
macro_indicator_history — 请求参数
macro_indicator_history — 请求参数
相关接口
宏观指标目录
浏览约 50 个精选指标目录(免费)。
宏观指标快照
只看最新值 + 涨跌(不返回完整序列)。