← 金融与货币

时间序列

GET /timeseries

获取指定日期范围内每天的每日汇率。返回日期到汇率对象的映射,适用于绘制汇率图表和趋势线、执行时间序列分析或计算移动平均。支持按基础货币和目标货币符号筛选,以在较长日期范围内保持可管理的响应大小。

查看可视化效果

参数

start_date 必填

Start date

end_date 必填

End date

base 可选

Base currency

symbols 可选

Target currencies

请求示例

基本用法
curl "https://nordapi.ee/api/v1/timeseries?start_date=2026-05-01&end_date=2026-05-15&base=USD&symbols=EUR"
USD/EUR rate over two weeks
curl "https://nordapi.ee/api/v1/timeseries?start_date=2026-05-01&end_date=2026-05-15&base=USD&symbols=EUR"
NOK against multiple currencies over a month
curl "https://nordapi.ee/api/v1/timeseries?start_date=2026-04-15&end_date=2026-05-15&base=NOK&symbols=SEK,DKK"
All rates for GBP over a week
curl "https://nordapi.ee/api/v1/timeseries?start_date=2026-05-17&end_date=2026-05-24&base=GBP"

实时响应

{
  "base": "USD",
  "end_date": "2026-05-15",
  "rates": {
    "2026-05-01": {
      "EUR": 0.85455478
    },
    "2026-05-02": {
      "EUR": 0.85455478
    },
    "2026-05-03": {
      "EUR": 0.85455478
    },
    "2026-05-04": {
      "EUR": 0.85470085
    },
    "2026-05-05": {
      "EUR": 0.8557248
    },
    "2026-05-06": {
      "EUR": 0.85019554
    },
    "2026-05-07": {
      "EUR": 0.84961767
    },
    "2026-05-08": {
      "EUR": 0.85026783
    },
    "2026-05-09": {
      "EUR": 0.85026783
    },
    "2026-05-10": {
      "EUR": 0.85026783
    },
    "2026-05-11": {
      "EUR": 0.84997875
    },
    "2026-05-12": {
      "EUR": 0.85193389
    },
    "2026-05-13": {
      "EUR": 0.85360649
    },
    "2026-05-14": {
      "EUR": 0.85455478
    },
    "2026-05-15": {
      "EUR": 0.85999312
    }
  },
  "start_date": "2026-05-01",
  "success": true
}

响应示例

{"success":true,"base":"USD","rates":{"2026-05-01":{"EUR":0.92},"2026-05-02":{"EUR":0.918}}}