← Rahoitus ja valuutta

Jalometallien hinnat

GET /metals/prices

Hae current spot prices for gold, silver, platinum, and palladium in any of the 30 supported currencies. Palauttaa per-troy-ounce prices for each metal. Sopii investment tracking apps, jewelry pricing calculators, and financial dashboards that need precious metals alongside currency data. Prices are updated daily and can be displayed in local currencies like NOK or SEK for Nordic users.

Parametrit

base valinnainen oletus: USD

Price currency

Esimerkkipyynnöt

Peruskäyttö
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"

Reaaliaikainen vastaus

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

Esimerkkivastaus

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