/v1/meta
Service metadata
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/sectorcorrelation-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sectorcorrelation-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sectorcorrelation-api/v1/meta");
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/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"note": "window is 20-365 days (default 90). Correlations use daily log returns aligned on common trading days. Beta is measured against SPY. Read fresh per call, nothing cached.",
"source": "Yahoo Finance daily SPDR sector ETF closes, live",
"service": "sectorcorrelation-api",
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/matrix": "Full 11x11 sector correlation matrix with most/least correlated pairs (window=90).",
"GET /v1/sector": "One sector's correlations to all others, ranked, with beta to the S&P 500 (sector=technology, window=90).",
"GET /v1/sectors": "The eleven S&P 500 sectors."
},
"description": "Stock sector correlation matrix — how the eleven S&P 500 sectors move together, live from Yahoo Finance via the SPDR sector ETFs (no key, nothing stored). matrix returns the full pairwise return-correlation matrix with the most- and least-correlated sector pairs. sector returns one sector's correlation to every other, ranked, plus its beta to the S&P 500. sectors lists what is covered. The equity sector correlation / rotation cut — distinct from the cross-asset correlation matrix, the crypto and currency correlation APIs and the sector price/performance feed.",
"sectors_loaded": 11,
"upstream_status": "ok",
"sectors_supported": 11
},
"meta": {
"timestamp": "2026-06-12T10:35:13.551Z",
"request_id": "61e43c36-9f3d-41b9-b6f7-bd93fad1003c"
},
"status": "ok",
"message": "Meta",
"success": true
}