← Rahandus ja valuuta

Väärismetallide hinnad

GET /metals/prices

Saage current hetkhinnad for gold, silver, platinum, and palladium in any of the 30 supported currencies. Tagastab per-troy-ounce prices for each metal. Ideaalne investment tracking apps, jewelry pricing calculators, and financial dashboards that need väärismetallid alongside currency data. Prices are updated daily and can be displayed in local currencies like NOK or SEK for Nordic users.

Parameetrid

base valikuline vaikeväärtus: USD

Price currency

Näidispäringud

Põhikasutus
curl https://nordapi.ee/api/v1/metals/prices
All metals in USD (default)
curl "https://nordapi.ee/api/v1/metals/prices"
All metals in NOK
curl "https://nordapi.ee/api/v1/metals/prices?base=NOK"
All metals in GBP
curl "https://nordapi.ee/api/v1/metals/prices?base=GBP"

Reaalajas vastus

{
  "data": {
    "base": "USD",
    "count": 4,
    "prices": [
      {
        "currency": "USD",
        "date": "2026-03-20",
        "metal": "gold",
        "name": "Gold (Troy Ounce)",
        "price": 3045.0,
        "price_usd": 3045.0,
        "source": "reference",
        "unit": "troy_oz"
      },
      {
        "currency": "USD",
        "date": "2026-04-05",
        "metal": "silver",
        "name": "Silver (Troy Ounce)",
        "price": 33.5,
        "price_usd": 33.5,
        "source": "reference",
        "unit": "troy_oz"
      },
      {
        "currency": "USD",
        "date": "2026-04-05",
        "metal": "platinum",
        "name": "Platinum (Troy Ounce)",
        "price": 1005.0,
        "price_usd": 1005.0,
        "source": "reference",
        "unit": "troy_oz"
      },
      {
        "currency": "USD",
        "date": "2026-04-05",
        "metal": "palladium",
        "name": "Palladium (Troy Ounce)",
        "price": 975.0,
        "price_usd": 975.0,
        "source": "reference",
        "unit": "troy_oz"
      }
    ]
  },
  "success": true
}

Näidisvastus

{"success":true,"data":{"prices":[{"metal":"gold","price":3045.0,"currency":"USD"}]}}