← Rahandus ja valuuta

Toorme hind

GET /commodities/:commodity

Saage the current price for a specific commodity (gold, silver, platinum, palladium, oil, natural_gas, or copper) in any of the 30 supported currencies. Tagastab both the USD base price and the converted price. Useful when you need just one commodity's price rather than the full list, nagu displaying the gold price in NOK on a Nordic investment page.

Parameetrid

commodity kohustuslik

Commodity name in URL

currency valikuline vaikeväärtus: USD

Price currency

Näidispäringud

Põhikasutus
curl "https://nordapi.ee/api/v1/commodities/gold?currency=NOK"
Gold price in NOK
curl "https://nordapi.ee/api/v1/commodities/gold?currency=NOK"
Crude oil price in USD
curl "https://nordapi.ee/api/v1/commodities/oil"
Silver price in EUR
curl "https://nordapi.ee/api/v1/commodities/silver?currency=EUR"

Reaalajas vastus

{
  "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"
}

Näidisvastus

{"success":true,"commodity":"gold","price":29063.87,"currency":"NOK","price_usd":3045.0}