Correlation matrix
curl --request GET \
--url https://www.sharpe.ai/api/v1/correlation/matrix \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.sharpe.ai/api/v1/correlation/matrix', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.sharpe.ai/api/v1/correlation/matrix"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"assets": [
{
"id": "<string>",
"name": "<string>",
"symbol": "<string>",
"type": "crypto",
"logoUrl": "<string>"
}
],
"matrix": [
[
123
]
],
"dataPoints": [
[
123
]
],
"period": "30d",
"computedAt": "2023-11-07T05:31:56Z",
"unresolved": [
"<string>"
]
},
"meta": {
"request_id": "req_a1b2c3d4e5f6g7h8i9j0",
"timestamp": "2023-11-07T05:31:56Z",
"elapsed_ms": 1,
"dataset_id": "funding_rates_current",
"as_of": "2023-11-07T05:31:56Z",
"stale_after": "2023-11-07T05:31:56Z",
"freshness_sla_seconds": 123,
"freshness_status": "fresh",
"runtime_status": "ok",
"served_from": "snapshot",
"generated_at": "2023-11-07T05:31:56Z",
"source": [
"<string>"
],
"coverage": {
"expected": 123,
"used": 123,
"dropped": {},
"missing": [
"<string>"
]
},
"warnings": [
"<string>"
],
"truncated": true
}
}Market Data
Correlation matrix
Returns a price correlation matrix for the requested coins over the specified period.
GET
/
v1
/
correlation
/
matrix
Correlation matrix
curl --request GET \
--url https://www.sharpe.ai/api/v1/correlation/matrix \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.sharpe.ai/api/v1/correlation/matrix', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.sharpe.ai/api/v1/correlation/matrix"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"assets": [
{
"id": "<string>",
"name": "<string>",
"symbol": "<string>",
"type": "crypto",
"logoUrl": "<string>"
}
],
"matrix": [
[
123
]
],
"dataPoints": [
[
123
]
],
"period": "30d",
"computedAt": "2023-11-07T05:31:56Z",
"unresolved": [
"<string>"
]
},
"meta": {
"request_id": "req_a1b2c3d4e5f6g7h8i9j0",
"timestamp": "2023-11-07T05:31:56Z",
"elapsed_ms": 1,
"dataset_id": "funding_rates_current",
"as_of": "2023-11-07T05:31:56Z",
"stale_after": "2023-11-07T05:31:56Z",
"freshness_sla_seconds": 123,
"freshness_status": "fresh",
"runtime_status": "ok",
"served_from": "snapshot",
"generated_at": "2023-11-07T05:31:56Z",
"source": [
"<string>"
],
"coverage": {
"expected": 123,
"used": 123,
"dropped": {},
"missing": [
"<string>"
]
},
"warnings": [
"<string>"
],
"truncated": true
}
}Authorizations
BearerAuthApiKeyAuth
Query Parameters
Comma-separated asset ids: CoinGecko ids for crypto (e.g. bitcoin) and short ids for TradFi (e.g. sp500, gold). Maximum 10. If omitted, returns the default set. Ids no source recognises are listed in an optional unresolved array (partial success); a selection none of whose ids is recognised returns 404 resource_not_found naming them.

