/v1/index
Custom weighted index (geometric/arithmetic)
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}