/v1/beta
Beta to the S&P 500
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
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_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"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
}