Arbitrage opportunities
curl --request GET \
--url https://www.sharpe.ai/api/v1/opportunities \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.sharpe.ai/api/v1/opportunities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.sharpe.ai/api/v1/opportunities"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"report": "opportunities",
"report_md": "<string>",
"inputs": [
{
"label": "<string>",
"endpoint": "<string>",
"query": {},
"dataset_id": "<string>",
"as_of": "2023-11-07T05:31:56Z",
"freshness_status": "fresh",
"runtime_status": "ok",
"error": "<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
}
}Reports
Arbitrage opportunities
The funding-arbitrage opportunities rendered as markdown: the top 10 spot-perp basis trades (perp legs with at least 1Mofopeninterest)andthetop10cross−exchangefundingpairs(bothlegswithatleast1M of open interest and 24h volume), each in its board’s order with its gross and fee-adjusted net APR and status flags (the spot-perp section counts the executable rows and marks open interest on a venue the API leaves out of its totals as unverified; a cross-exchange row prints its funding spread apart from its entry price gap), and the funding book’s market stats (mean and OI-weighted APR, markets paying each way). inputs lists each read with the freshness of its answer; a read that fails leaves a gap in the report, not an error.
GET
/
v1
/
opportunities
Arbitrage opportunities
curl --request GET \
--url https://www.sharpe.ai/api/v1/opportunities \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.sharpe.ai/api/v1/opportunities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.sharpe.ai/api/v1/opportunities"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"report": "opportunities",
"report_md": "<string>",
"inputs": [
{
"label": "<string>",
"endpoint": "<string>",
"query": {},
"dataset_id": "<string>",
"as_of": "2023-11-07T05:31:56Z",
"freshness_status": "fresh",
"runtime_status": "ok",
"error": "<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

