跳转到内容

宏观经济历史数据

获取指定宏观经济指标的历史发布数据,包括实际值、预测值、前值和下次发布时间。

参数 ​

SDK 方法参数。

名称类型必填描述
indicator_codestring是指标代码,来自 macroeconomic_indicators
start_datestring否开始日期,格式 YYYY-MM-DD
end_datestring否结束日期,格式 YYYY-MM-DD
limitint否最大返回条数,默认 100,最大 100

请求示例 ​

响应 ​

响应示例 ​

json
{
  "count": 24,
  "info": {
    "indicator_code": "62267",
    "country": "US",
    "name": "Non-Farm Payroll",
    "periodicity": "Monthly",
    "describe": "...",
    "importance": 3
  },
  "data": [
    {
      "period": "2024-12-01",
      "release_at": 1735900200,
      "actual_value": "256000",
      "previous_value": "212000",
      "forecast_value": "165000"
    }
  ]
}

数据结构 ​

MacroeconomicResponse ​

字段类型必填描述
infoMacroeconomicIndicator是指标元数据
dataMacroeconomic[]是历史数据点列表
countint是数据总条数

Macroeconomic ​

字段类型必填描述
periodstring是统计周期(如 2024-12-01、2024-Q4)
release_atint否发布时间 Unix 时间戳
actual_valuestring是实际值
previous_valuestring是前值
forecast_valuestring是市场预期值