Zum Inhalt springen
GET /v1/basket

Trade-weighted index normalised to 100

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}