Skip to content
GET /v1/ratio

One ratio with component prices, percentile and signal

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/preciousratios-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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_..."}
)

Example response

A real response from this endpoint, captured by the latest 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
}