/v1/movers
Commodity complex ranked by daily change with weekly/monthly leaders
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/commoditymovers-api/v1/movers" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/commoditymovers-api/v1/movers", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/commoditymovers-api/v1/movers");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/commoditymovers-api/v1/movers",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"note": "Every commodity ranked by change on the day (gainers first), with weekly and monthly leaders. change_1d/1w/1m_pct are price changes over 1, ~5 and ~21 trading days; range_position_52w places the price in its 52-week range. group filters to energy, metals, grains, softs or livestock.",
"group": "metals",
"source": "Yahoo Finance",
"scanned": 5,
"commodities": [
{
"key": "palladium",
"name": "Palladium",
"group": "metals",
"price": 1316.5,
"symbol": "PA=F",
"day_low": 1283,
"currency": "USD",
"day_high": 1326.5,
"week52_low": 1036.7,
"week52_high": 2169.8999,
"change_1d_pct": 6.63,
"change_1m_pct": -14.01,
"change_1w_pct": 5.56,
"range_position_52w": 24.7
},
{
"key": "silver",
"name": "Silver",
"group": "metals",
"price": 67.165,
"symbol": "SI=F",
"day_low": 65.965,
"currency": "USD",
"day_high": 68.08,
"week52_low": 35.701,
"week52_high": 115.08,
"change_1d_pct": 5.13,
"change_1m_pct": -24.44,
"change_1w_pct": -2.58,
"range_position_52w": 39.6
},
{
"key": "platinum",
"name": "Platinum",
"group": "metals",
"price": 1724.5,
"symbol": "PL=F",
"day_low": 1713.7,
"currency": "USD",
"day_high": 1746.3,
"week52_low": 1210.8,
"week52_high": 2852.3999,
"change_1d_pct": 3.72,
"change_1m_pct": -21.15,
"change_1w_pct": -3.77,
"range_position_52w": 31.3
},
{
"key": "gold",
"name": "Gold",
"group": "metals",
"price": 4234.3999,
"symbol": "GC=F",
"day_low": 4191.1,
"currency": "USD",
"day_high": 4267.8,
"week52_low": 3273.7,
"week52_high": 5318.3999,
"change_1d_pct": 3.52,
"change_1m_pct": -9.86,
"change_1w_pct": -2.37,
"range_position_52w": 47
},
{
"key": "copper",
"name": "Copper",
"group": "metals",
"price": 6.3995,
"symbol": "HG=F",
"day_low": 6.359,
"currency": "USD",
"day_high": 6.445,
"week52_low": 4.3305,
"week52_high": 6.6495,
"chan
…