← Fjármál og gjaldmiðlar

Sögulegt málmverð

GET /metals/historical/:metal/:date

Flettu upp the price of a specific precious metal (gulli, silfri, platínu, or palladium) on hvaða ... sem er past date. Gefðu upp the metal name and date í slóðinni path. Skilar USD price for that date. Gagnlegt fyrir historical portfolio valuation, insurance appraisals, academic research on metal price trends, and comparing metal performance á móti aðra assets yfir tíma.

Breytur

metal nauðsynlegt

Metal name (gold, silver, platinum, palladium)

date nauðsynlegt

Date (YYYY-MM-DD)

Dæmi um fyrirspurnir

Grunnnotkun
curl https://nordapi.ee/api/v1/metals/historical/gold/2026-03-20
Gold price on a specific date
curl https://nordapi.ee/api/v1/metals/historical/gold/2026-03-20
Silver price at start of year
curl https://nordapi.ee/api/v1/metals/historical/silver/2026-01-02
Platinum price last month
curl https://nordapi.ee/api/v1/metals/historical/platinum/2026-02-15

Lifandi svar

{
  "data": {
    "date": "2026-03-20",
    "metal": "gold",
    "price_usd": 3045.0,
    "source": "reference",
    "unit": "troy_oz"
  },
  "success": true
}

Dæmi um svar

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