Vai al contenuto
GET /v1/basket

Trade-weighted index normalised to 100

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

Risposta di esempio

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

{
    "data": {
        "legs": [
            {
                "base": 1.1,
                "ratio": 0.98181818,
                "weight": 0.5,
                "current": 1.08
            },
            {
                "base": 148,
                "ratio": 1.01351351,
                "weight": 0.5,
                "current": 150
            }
        ],
        "note": "Trade-weighted index normalised to 100 = 100 x product((current/base)^(weight/total_weight)). Above 100 = the indexed currency strengthened vs the basket.",
        "value": 99.754,
        "source": "CURRENCY-INDEX",
        "direction": "weaker",
        "base_value": 100,
        "change_pct": -0.246,
        "components": 2
    },
    "meta": {
        "timestamp": "2026-06-11T07:49:21.453Z",
        "request_id": "fd9df245-7281-4a43-aaee-625d528c90ad"
    },
    "status": "ok",
    "message": "Basket index computed",
    "success": true
}