Ir al contenido
GET /v1/bonds

Supported fixed-income ETFs and categories

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/bondperformance-api

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

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

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

{
    "data": {
        "note": "Supported fixed-income ETFs. Pass key/alias/etf as bond= to /v1/bond, or category= to /v1/board.",
        "bonds": [
            {
                "etf": "SHV",
                "key": "ultrashort_treasury",
                "name": "0-3m T-Bills",
                "category": "treasury",
                "rate_sensitivity": "very low"
            },
            {
                "etf": "SHY",
                "key": "short_treasury",
                "name": "1-3y Treasuries",
                "category": "treasury",
                "rate_sensitivity": "low"
            },
            {
                "etf": "IEF",
                "key": "mid_treasury",
                "name": "7-10y Treasuries",
                "category": "treasury",
                "rate_sensitivity": "medium"
            },
            {
                "etf": "TLT",
                "key": "long_treasury",
                "name": "20y+ Treasuries",
                "category": "treasury",
                "rate_sensitivity": "very high"
            },
            {
                "etf": "GOVT",
                "key": "broad_treasury",
                "name": "Broad Treasuries",
                "category": "treasury",
                "rate_sensitivity": "medium"
            },
            {
                "etf": "LQD",
                "key": "ig_credit",
                "name": "Investment-Grade Corp",
                "category": "credit",
                "rate_sensitivity": "high"
            },
            {
                "etf": "VCIT",
                "key": "interm_ig",
                "name": "Intermediate IG Corp",
                "category": "credit",
                "rate_sensitivity": "medium"
            },
            {
                "etf": "HYG",
                "key": "high_yield",
                "name": "High-Yield Corp",
                "category": "credit",
                "rate_sensitivity": "medium"
            },
            {
                "etf": "BKLN",
                "key": "senior_loans",
                "name": "Senior Bank Loans",
                "category": "credit",
                "rate_sensitivity": "very low"
            },
            {
                "etf": "TIP",
                "key": "tips",
                "name": "TIPS (Inflation-Linked)",
                "category": "inflation",
                "rate_sensitivity": "high"
            },
            {
                "etf": "VTIP",
                "key": "short_tips",
                "name": "Short TIPS",
                "category": "inflation",
                "rate_sensitivity": "low"
            },
            {
                "etf": "EMB",
                "key": "em_bonds",
                "name": "Emerging-Market USD Bonds",
                "category": "emerging",
                "rate_sensitivity": "high"
            },
            {
                "etf": "AGG",
                "key": "aggregate",
                "name": "US Aggregate Bond",
    
…