/v1/ratios
Gold/silver, gold/oil, oil/natgas ratios
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/commodityspreads-api/v1/ratios" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/commodityspreads-api/v1/ratios", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/commodityspreads-api/v1/ratios");
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/commodityspreads-api/v1/ratios",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "gold_silver is ounces of silver per ounce of gold (a high ratio = fear / silver cheap); gold_oil is barrels of crude per ounce of gold; oil_natgas is the energy ratio. Classic inter-commodity relationships traders watch.",
"ratios": {
"gold_oil": 50.1,
"oil_natgas": 27.7,
"gold_copper": 661.5,
"gold_silver": 63.1
},
"source": "Yahoo Finance (GC=F, SI=F, CL=F, NG=F, HG=F)",
"components": {
"gold_usd_oz": 4231.8,
"copper_usd_lb": 6.397,
"crude_usd_bbl": 84.52,
"silver_usd_oz": 67.04,
"natgas_usd_mmbtu": 3.054
}
},
"meta": {
"timestamp": "2026-06-12T10:35:29.670Z",
"request_id": "38ddc95e-7b09-49e2-97ae-dced3a9dbfb0"
},
"status": "ok",
"message": "Ratios retrieved successfully",
"success": true
}