/v1/meta
Spec
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}