跳轉到內容

宏觀經濟歷史數據

獲取指定宏觀經濟指標的歷史發布數據,包括實際值、預測值、前值和下次發布時間。

參數

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市場預期值