Aller au contenu
GET /v1/beta

Beta to the S&P 500

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/cryptomacro-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/cryptomacro-api/v1/beta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cryptomacro-api/v1/beta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cryptomacro-api/v1/beta");
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/cryptomacro-api/v1/beta",
    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": {
        "beta": 1.063,
        "coin": "BTC",
        "note": "beta = cov(coin, S&P 500) / var(S&P 500) on daily log returns. beta > 1 means the coin amplifies equity moves; beta near 0 means it moves independently of stocks.",
        "source": "Binance + Yahoo Finance",
        "benchmark": "S&P 500",
        "r_squared": 0.221,
        "correlation": 0.47,
        "window_days": 90,
        "observations": 65
    },
    "meta": {
        "timestamp": "2026-06-12T10:35:30.290Z",
        "request_id": "9ff4127a-f924-4885-abd5-4ff4ecca11a7"
    },
    "status": "ok",
    "message": "Beta retrieved successfully",
    "success": true
}