已暴露为 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 拉序列。时间边界可选:用 start_date 和/或 end_date 先过滤候选窗口,再用 limit 和 take_from 决定保留哪一端。返回顺序始终是旧到新。
Agent flow
返回值
仅在候选窗口内的数据多于实际返回条数时出现 —— 也就是结果被
limit 截断了。这句话提示 agent 缩小窗口或把查询拆成多次:More data exists in the requested window than the items returned; narrow the window or split the query to see more.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 个精选指标目录(免费)。
宏观指标快照
只看最新值 + 涨跌(不返回完整序列)。