Ir al contenido
GET /v1/spread

Spread between two maturities

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/yieldcurve-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "long": "10y",
        "short": "2y",
        "inverted": false,
        "spread_bps": 75.2,
        "spread_pct": 0.752,
        "long_yield_pct": 4.552,
        "short_yield_pct": 3.8
    },
    "meta": {
        "timestamp": "2026-06-09T03:02:18.184Z",
        "request_id": "e13a89e3-b2e7-4bac-8a15-62feff0f744f"
    },
    "status": "ok",
    "message": "Spread retrieved successfully",
    "success": true
}