Zum Inhalt springen
GET /v1/ratios

The whole precious-metal ratio complex with percentiles and signals

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/preciousratios-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/preciousratios-api/v1/ratios" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/preciousratios-api/v1/ratios", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/preciousratios-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/preciousratios-api/v1/ratios",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Each precious-metal ratio with its current value and where it sits (percentile) in its 1260-day range. These ratios mean-revert: a high percentile means the first metal is historically expensive versus the second (rotate into the second), a low percentile the reverse. Read fresh per call, lightly cached.",
        "count": 5,
        "ratios": [
            {
                "avg": 81.403,
                "max": 104.819,
                "min": 44.141,
                "name": "Gold / Silver (mint ratio)",
                "pair": "gold_silver",
                "signal": "extreme low — Gold historically cheap vs Silver; the mean-reversion trade rotates into Gold",
                "available": true,
                "percentile": 7.3,
                "window_days": 1260,
                "current_ratio": 63.076
            },
            {
                "avg": 2.227,
                "max": 3.567,
                "min": 1.601,
                "name": "Gold / Platinum",
                "pair": "gold_platinum",
                "signal": "elevated — Gold rich vs Platinum, leaning toward Platinum",
                "available": true,
                "percentile": 72.9,
                "window_days": 1260,
                "current_ratio": 2.456
            },
            {
                "avg": 0.825,
                "max": 1.457,
                "min": 0.37,
                "name": "Platinum / Palladium",
                "pair": "platinum_palladium",
                "signal": "extreme high — Platinum historically expensive vs Palladium; the mean-reversion trade rotates into Palladium",
                "available": true,
                "percentile": 94.4,
                "window_days": 1260,
                "current_ratio": 1.31
            },
            {
                "avg": 1.92,
                "max": 3.68,
                "min": 0.632,
                "name": "Gold / Palladium",
                "pair": "gold_palladium",
                "signal": "extreme high — Gold historically expensive vs Palladium; the mean-reversion trade rotates into Palladium",
                "available": true,
                "percentile": 94.5,
                "window_days": 1260,
                "current_ratio": 3.217
            },
            {
                "avg": 0.028,
                "max": 0.044,
                "min": 0.02,
                "name": "Silver / Platinum",
                "pair": "silver_platinum",
                "signal": "extreme high — Silver historically expensive vs Platinum; the mean-reversion trade rotates into Platinum",
                "available": true,
                "percentile": 97.5,
                "window_days": 1260,
                "current_ratio": 0.039
            }
        ],
        "source": "Yahoo Finance (GC=F, SI=F, PL=F, PA=F)",
        "unavailable": [],
        "window_days": 1260
    },
    "meta": {
        "timestamp": "2026-06-12T10:34:33.120Z",
        "request_id": "f180a49c-6ba8
…