← Finans & valuta

Historiskt metallpris

GET /metals/historical/:metal/:date

Look up the pris of a specifik precious metal (gold, silver, platinum, or palladium) on valfri past datum. Provide the metal namn and datum i URL path. Returnerar the USD pris for som datum. Användbart för historisk portfolio valuation, insurance appraisals, academic forskning on metal pris trender, and comparing metal prestanda against andra assets över tid.

Parametrar

metal obligatorisk

Metal name (gold, silver, platinum, palladium)

date obligatorisk

Date (YYYY-MM-DD)

Exempelförfrågningar

Grundläggande användning
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

Livesvar

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

Exempelsvar

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