/v1/matrix
Pairwise correlation matrix across a basket
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/cryptocorrelation-api/v1/matrix" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cryptocorrelation-api/v1/matrix", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cryptocorrelation-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/cryptocorrelation-api/v1/matrix",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"note": "Pearson correlation of daily log returns over window_days; matrix[i][j] pairs coins[i] with coins[j]. average_pairwise_correlation near 1 means the market is moving as one (risk-on/off); low means real dispersion.",
"coins": [
"BTC",
"ETH",
"SOL",
"DOGE"
],
"matrix": [
[
1,
0.906,
0.878,
0.778
],
[
0.906,
1,
0.868,
0.804
],
[
0.878,
0.868,
1,
0.812
],
[
0.778,
0.804,
0.812,
1
]
],
"source": "Binance",
"window_days": 90,
"observations": 90,
"average_pairwise_correlation": 0.841
},
"meta": {
"timestamp": "2026-06-12T01:41:09.676Z",
"request_id": "74963a6f-2542-4d24-84dc-a1f7301716ba"
},
"status": "ok",
"message": "Matrix retrieved successfully",
"success": true
}