GET /commodities/:commodity
获取特定商品(黄金、白银、铂金、钯金、石油、天然气或铜)以 30 种支持货币中任意一种计价的当前价格。返回美元基础价格和转换后的价格。当你只需要一种商品的价格而非完整列表时非常有用,例如在北欧投资页面上以 NOK 显示金价。
commodity
必填
Commodity name in URL
currency
可选
默认: USD
Price currency
| 名称 | 必填 | 默认值 | 描述 |
|---|---|---|---|
commodity |
是 | - | Commodity name in URL |
currency |
否 | 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}