← 金融与货币

历史金属价格

GET /metals/historical/:metal/:date

查询特定贵金属(黄金、白银、铂金或钯金)在任何过去日期的价格。在 URL 路径中提供金属名称和日期。返回该日期的美元价格。适用于历史投资组合估值、保险评估、金属价格趋势学术研究和比较金属与其他资产随时间的表现。

参数

metal 必填

Metal name (gold, silver, platinum, palladium)

date 必填

Date (YYYY-MM-DD)

请求示例

基本用法
curl https://nordapi.ee/api/v1/metals/historical/gold/2026-05-20
Gold price on a specific date
curl https://nordapi.ee/api/v1/metals/historical/gold/2026-05-20
Silver price at start of year
curl https://nordapi.ee/api/v1/metals/historical/silver/2026-04-15
Platinum price last month
curl https://nordapi.ee/api/v1/metals/historical/platinum/2026-05-15

实时响应

HTTP 502: {
  "error": "no_data",
  "success": false
}

响应示例

{"success":true,"data":{"metal":"gold","date":"2026-05-20","price_usd":3045.0}}