Ir al contenido
GET /v1/meta

Spec

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

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

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/capm-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/capm-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/capm-api/v1/meta");
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/capm-api/v1/meta",
    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": "asset & market = price series (default) or returns (as=returns), comma-separated oldest first, equal length. risk_free & periods_per_year optional; rates are fractions (0.02 = 2%).",
        "source": "Computed in-process from caller-supplied asset & market series (no upstream)",
        "service": "capm-api",
        "endpoints": {
            "GET /v1/beta": "Beta, alpha, correlation, R-squared (asset=100,102,...&market=200,201,...).",
            "GET /v1/capm": "CAPM expected return + Jensen's alpha; or direct mode (beta=1.2&market_return=0.08&risk_free=0.02).",
            "GET /v1/meta": "This document.",
            "GET /v1/treynor": "Treynor ratio — reward per unit of systematic risk (asset=...&market=...&risk_free=0.02)."
        },
        "description": "Live CAPM and systematic-risk (beta) analytics computed on demand from an asset and a market-benchmark series. The beta endpoint regresses asset returns on the market and returns beta, alpha, correlation and R-squared; the capm endpoint returns the CAPM expected return (risk-free + beta x market risk premium) and Jensen's alpha; the treynor endpoint returns the Treynor ratio (reward per unit of systematic risk). This measures risk relative to a market, distinct from single-series total-risk tools — it needs two series. Computed locally, nothing stored. Works for stocks, funds, crypto, FX or portfolios.",
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-11T07:49:25.425Z",
        "request_id": "2dd7c6ee-6cdd-431e-89ab-69da70dc8821"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}