/v1/matrix
Full 11x11 sector correlation matrix with most/least correlated pairs
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/sectorcorrelation-api/v1/matrix" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sectorcorrelation-api/v1/matrix", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sectorcorrelation-api/v1/matrix");
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/sectorcorrelation-api/v1/matrix",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"to": "2026-06-11",
"from": "2026-02-02",
"note": "Full pairwise Pearson correlation of daily log returns across the eleven S&P 500 sectors, aligned on common trading days. High correlations mean the market is moving as one (risk-on/risk-off); low or spread correlations reward rotation and stock-picking. most_correlated pairs double up risk; least_correlated diversify.",
"matrix": {
"energy": {
"energy": 1,
"materials": -0.11,
"utilities": -0.013,
"financials": -0.246,
"technology": -0.221,
"health_care": -0.149,
"industrials": -0.28,
"real_estate": -0.248,
"communication": -0.387,
"consumer_staples": 0.061,
"consumer_discretionary": -0.464
},
"materials": {
"energy": -0.11,
"materials": 1,
"utilities": 0.351,
"financials": 0.318,
"technology": 0.446,
"health_care": 0.416,
"industrials": 0.747,
"real_estate": 0.484,
"communication": 0.335,
"consumer_staples": 0.272,
"consumer_discretionary": 0.547
},
"utilities": {
"energy": -0.013,
"materials": 0.351,
"utilities": 1,
"financials": -0.029,
"technology": -0.131,
"health_care": 0.318,
"industrials": 0.327,
"real_estate": 0.623,
"communication": 0.032,
"consumer_staples": 0.434,
"consumer_discretionary": 0.109
},
"financials": {
"energy": -0.246,
"materials": 0.318,
"utilities": -0.029,
"financials": 1,
"technology": 0.351,
"health_care": 0.395,
"industrials": 0.498,
"real_estate": 0.409,
"communication": 0.531,
"consumer_staples": -0.008,
"consumer_discretionary": 0.563
},
"technology": {
"energy": -0.221,
"materials": 0.446,
"utilities": -0.131,
"financials": 0.351,
"technology": 1,
"health_care": 0.087,
"industrials": 0.526,
"real_estate": 0.082,
"communication": 0.458,
"consumer_staples": -0.261,
"consumer_discretionary": 0.629
},
"health_care": {
"energy": -0.149,
"materials": 0.416,
"utilities": 0.318,
"financials": 0.395,
"technology": 0.087,
"health_care": 1
…