跳转到内容

宏观经济历史数据

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

参数

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-012024-Q4
release_atint发布时间 Unix 时间戳
actual_valuestring实际值
previous_valuestring前值
forecast_valuestring市场预期值