Vai al contenuto
GET /v1/correlation

Correlation to stocks, gold & the dollar

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/cryptomacro-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}