/v1/correlation
Correlation to stocks, gold & the dollar
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/cryptomacro-api/v1/correlation" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cryptomacro-api/v1/correlation", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cryptomacro-api/v1/correlation");
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/correlation",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"coin": "BTC",
"note": "Pearson correlation of daily log returns over window_days, aligned on common trading days. High S&P correlation = crypto trades risk-on; high gold correlation / negative dollar correlation = more hedge-like.",
"source": "Binance + Yahoo Finance",
"verdict": "trading as a risk asset (more stock- than gold-like)",
"window_days": 90,
"correlations": [
{
"read": "moderately risk-on",
"asset": "sp500",
"label": "S&P 500",
"correlation": 0.47,
"observations": 65
},
{
"read": "moderately risk-on",
"asset": "nasdaq",
"label": "Nasdaq 100",
"correlation": 0.479,
"observations": 65
},
{
"read": "little gold link",
"asset": "gold",
"label": "Gold",
"correlation": 0.247,
"observations": 66
},
{
"read": "mild dollar sensitivity",
"asset": "dxy",
"label": "US Dollar Index",
"correlation": -0.289,
"observations": 66
}
]
},
"meta": {
"timestamp": "2026-06-12T10:35:30.787Z",
"request_id": "ee139f03-d531-43b8-9fae-a6d9838660d3"
},
"status": "ok",
"message": "Correlation retrieved successfully",
"success": true
}