Open interest across the market
curl --request GET \
--url https://www.sharpe.ai/api/v1/open-interest \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.sharpe.ai/api/v1/open-interest', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.sharpe.ai/api/v1/open-interest"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"hours": [
"2023-11-07T05:31:56Z"
],
"left_out": [
{
"exchange": "<string>",
"newest_hour": "2023-11-07T05:31:56Z",
"reason": "<string>"
}
],
"venues": [
{
"exchange": "<string>",
"crypto": [
123
],
"rwa": [
123
],
"ex_majors": [
123
]
}
],
"classes": [
{
"asset_class": "crypto",
"label": "<string>",
"hourly": [
123
],
"venues_now": [
{
"exchange": "<string>",
"oi": 123
}
]
}
],
"assets": [
{
"asset_id": "<string>",
"symbol": "<string>",
"asset_class": "crypto",
"logo_url": "<string>",
"hourly": [
123
],
"venues_now": [
{
"exchange": "<string>",
"oi": 123
}
]
}
],
"directory": [
{
"asset_id": "<string>",
"symbol": "<string>",
"asset_class": "crypto",
"logo_url": "<string>",
"oi": 123
}
],
"btc_price": [
123
]
},
"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
}
}Derivatives
Open interest across the market
Returns the whole derivatives market’s open interest, hour by hour over up to 30 days: each venue’s crypto and RWA open interest (and crypto without BTC and ETH), each asset class’s total, the largest assets of each class with their venue split, every asset over $100,000, and BTC’s hourly price. Open interest is one side in US dollars at each hour’s close, summed over every perpetual and dated contract; MEXC and BingX are left out of every total, as is any venue with no reading at the last hour (Deribit, which publishes open interest 8 hours late), and tradeXYZ (Hyperliquid’s HIP-3 xyz dex) is counted as Hyperliquid. left_out lists them. Updated hourly.
GET
/
v1
/
open-interest
Open interest across the market
curl --request GET \
--url https://www.sharpe.ai/api/v1/open-interest \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.sharpe.ai/api/v1/open-interest', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.sharpe.ai/api/v1/open-interest"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"hours": [
"2023-11-07T05:31:56Z"
],
"left_out": [
{
"exchange": "<string>",
"newest_hour": "2023-11-07T05:31:56Z",
"reason": "<string>"
}
],
"venues": [
{
"exchange": "<string>",
"crypto": [
123
],
"rwa": [
123
],
"ex_majors": [
123
]
}
],
"classes": [
{
"asset_class": "crypto",
"label": "<string>",
"hourly": [
123
],
"venues_now": [
{
"exchange": "<string>",
"oi": 123
}
]
}
],
"assets": [
{
"asset_id": "<string>",
"symbol": "<string>",
"asset_class": "crypto",
"logo_url": "<string>",
"hourly": [
123
],
"venues_now": [
{
"exchange": "<string>",
"oi": 123
}
]
}
],
"directory": [
{
"asset_id": "<string>",
"symbol": "<string>",
"asset_class": "crypto",
"logo_url": "<string>",
"oi": 123
}
],
"btc_price": [
123
]
},
"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

