GET /commodities/:commodity
Hent den aktuelle pris for en specifik råvare (guld, sølv, platin, palladium, olie, naturgas eller kobber) i en af de 30 understøttede valutaer. Returnerer både USD-basisprisen og den konverterede pris. Nyttigt når du kun har brug for én råvares pris frem for den fulde liste, f.eks. visning af guldprisen i NOK på en nordisk investeringsside.
commodity
påkrævet
Commodity name in URL
currency
valgfri
standard: USD
Price currency
| Navn | Påkrævet | Standard | Beskrivelse |
|---|---|---|---|
commodity |
Ja | - | Commodity name in URL |
currency |
Nej | USD | Price currency |
curl "https://nordapi.ee/api/v1/commodities/gold?currency=NOK"
curl "https://nordapi.ee/api/v1/commodities/gold?currency=NOK"
curl "https://nordapi.ee/api/v1/commodities/oil"
curl "https://nordapi.ee/api/v1/commodities/silver?currency=EUR"
{
"commodity": "gold",
"currency": "NOK",
"date": "2026-03-20",
"fx_rate": 9.74273319,
"name": "Gold (Troy Ounce)",
"price": 29666.62256355,
"price_usd": 3045.0,
"source": "reference",
"success": true,
"unit": "troy_oz"
}
{"success":true,"commodity":"gold","price":29063.87,"currency":"NOK","price_usd":3045.0}