Vai al contenuto
GET /v1/index

Custom weighted index (geometric/arithmetic)

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/currencyindex-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "legs": [
            {
                "rate": 1.08,
                "weight": -0.576
            },
            {
                "rate": 150,
                "weight": 0.136
            }
        ],
        "note": "Geometric index = constant x product(rate^weight). Use negative weights for inversely-quoted pairs (as DXY does).",
        "value": 94.822371,
        "method": "geometric",
        "source": "CURRENCY-INDEX",
        "constant": 50.14348112,
        "components": 2
    },
    "meta": {
        "timestamp": "2026-06-11T07:49:21.636Z",
        "request_id": "d0808768-d896-40cf-8740-4d3feff7e4b7"
    },
    "status": "ok",
    "message": "Index computed",
    "success": true
}