/v1/ratio
One ratio with component prices, percentile and signal
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/preciousratios-api/v1/ratio" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/preciousratios-api/v1/ratio", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/preciousratios-api/v1/ratio");
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/preciousratios-api/v1/ratio",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"avg": 81.403,
"max": 104.819,
"min": 44.141,
"name": "Gold / Silver (mint ratio)",
"note": "current_ratio = gold price / silver price. percentile is where it sits in its 1260-day range; precious-metal ratios mean-revert, so extremes flag rotation trades. Read fresh per call, lightly cached.",
"pair": "gold_silver",
"signal": "extreme low — Gold historically cheap vs Silver; the mean-reversion trade rotates into Gold",
"source": "Yahoo Finance (GC=F / SI=F)",
"numerator": "gold",
"percentile": 7.3,
"denominator": "silver",
"window_days": 1260,
"current_ratio": 63.076,
"numerator_price": 4234.6,
"denominator_price": 67.14
},
"meta": {
"timestamp": "2026-06-12T10:34:33.231Z",
"request_id": "9568f080-860d-409c-b6c3-efda76156021"
},
"status": "ok",
"message": "Ratio retrieved successfully",
"success": true
}