curl --request GET \
--url https://www.sharpe.ai/api/v1/arbitrage/spot-perp \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.sharpe.ai/api/v1/arbitrage/spot-perp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.sharpe.ai/api/v1/arbitrage/spot-perp"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"symbol": "<string>",
"exchange": "<string>",
"fundingRate": 123,
"cumRate7d": 123,
"apr": 123,
"basisRate": 123,
"netApr": 123,
"intervalHours": 123,
"direction": "long",
"portfolio": {
"spotSide": "buy",
"perpSide": "long"
},
"nextFundingTime": "2023-11-07T05:31:56Z",
"perpSymbol": "<string>",
"perpOpenInterestUsd": 123,
"fundingIsStale": true,
"executionStatus": "executable",
"pairStatus": "eligible",
"fundingAsOf": "2023-11-07T05:31:56Z",
"pricesAsOf": "2023-11-07T05:31:56Z",
"indicativeReason": "unpriced",
"entryBasisRate": 123,
"roundTripFeeRate": 123,
"breakEvenDays": 123,
"requiresBorrow": true,
"borrowCostIncluded": true,
"borrowApr": 123,
"apr7d": 123,
"carrySignFlip7d": true,
"perpLotMultiplier": 123,
"spotPriceAsOf": "2023-11-07T05:31:56Z",
"perpPriceAsOf": "2023-11-07T05:31:56Z"
}
],
"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
}
}Spot-perp arbitrage
Returns spot-perpetual funding-capture rows with live funding, verified spot or margin availability, diagnostic basis, gross APR, and net APR after the venue’s taker fees, the adverse entry basis and (where public) the borrow cost of a reverse carry. Executable rows (both legs priced, one instrument within 5%, fresh quotes, depth reported on both legs covering $10,000) rank first, then rows whose only gap is unproven depth (no_spot_depth: spot prices are last trades with no book, so this is every clean row today), then the other indicative rows.
curl --request GET \
--url https://www.sharpe.ai/api/v1/arbitrage/spot-perp \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.sharpe.ai/api/v1/arbitrage/spot-perp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.sharpe.ai/api/v1/arbitrage/spot-perp"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"symbol": "<string>",
"exchange": "<string>",
"fundingRate": 123,
"cumRate7d": 123,
"apr": 123,
"basisRate": 123,
"netApr": 123,
"intervalHours": 123,
"direction": "long",
"portfolio": {
"spotSide": "buy",
"perpSide": "long"
},
"nextFundingTime": "2023-11-07T05:31:56Z",
"perpSymbol": "<string>",
"perpOpenInterestUsd": 123,
"fundingIsStale": true,
"executionStatus": "executable",
"pairStatus": "eligible",
"fundingAsOf": "2023-11-07T05:31:56Z",
"pricesAsOf": "2023-11-07T05:31:56Z",
"indicativeReason": "unpriced",
"entryBasisRate": 123,
"roundTripFeeRate": 123,
"breakEvenDays": 123,
"requiresBorrow": true,
"borrowCostIncluded": true,
"borrowApr": 123,
"apr7d": 123,
"carrySignFlip7d": true,
"perpLotMultiplier": 123,
"spotPriceAsOf": "2023-11-07T05:31:56Z",
"perpPriceAsOf": "2023-11-07T05:31:56Z"
}
],
"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
Query Parameters
Minimum open interest in USD on the perpetual leg (perpOpenInterestUsd). Default 0 (no floor). A row whose open interest is unknown fails a positive floor, and so does a row on a venue left out of the API's open-interest totals (MEXC: openInterestExcludedVenues elsewhere), whose stored value is kept on the row.
x >= 0
