Naar de inhoud
GET /v1/beta

Each coin's beta to BTC

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/cryptocorrelation-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "beta = cov(coin, BTC) / var(BTC) on daily log returns: beta > 1 amplifies BTC moves, < 1 dampens, < 0 moves against. r_squared is how much of the coin's variance BTC explains.",
        "betas": [
            {
                "beta": 1.28,
                "coin": "ETH",
                "r_squared": 0.821,
                "correlation": 0.906
            },
            {
                "beta": 1.245,
                "coin": "SOL",
                "r_squared": 0.772,
                "correlation": 0.878
            },
            {
                "beta": 0.985,
                "coin": "DOGE",
                "r_squared": 0.605,
                "correlation": 0.778
            }
        ],
        "count": 3,
        "source": "Binance",
        "benchmark": "BTC",
        "window_days": 90,
        "observations": 90
    },
    "meta": {
        "timestamp": "2026-06-12T01:41:09.338Z",
        "request_id": "9093d429-7a47-4758-82b4-d413f2f27d37"
    },
    "status": "ok",
    "message": "Beta retrieved successfully",
    "success": true
}