Margin borrow rates
curl --request GET \
--url https://www.sharpe.ai/api/v1/arbitrage/borrow-rates \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.sharpe.ai/api/v1/arbitrage/borrow-rates', 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/borrow-rates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"rows": [
{
"coin": "<string>",
"rates": [
{
"venue": "<string>",
"hourlyRate": 123,
"annualRate": 123,
"source": "<string>",
"asOf": "2023-11-07T05:31:56Z",
"limit": {
"amount": 123,
"unit": "coin"
}
}
],
"venueCount": 123,
"lowestAnnualRate": 123,
"lowestVenue": "<string>",
"highestAnnualRate": 123,
"highestVenue": "<string>"
}
],
"venues": [
{
"venue": "<string>",
"status": "ok",
"coins": 123,
"fetchedAt": "2023-11-07T05:31:56Z",
"reason": "<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
}
}Arbitrage
Margin borrow rates
Returns the spot-margin borrow rate of every coin the venues price without an account: Binance (VIP 0 cross-margin daily rate), OKX (basic daily rate), Bybit (No VIP hourly rate) and Gate.io (unified-account hourly rate, the 100 enabled currencies with the most USDT spot volume). Rates are fractions: hourlyRate per hour, annualRate = hourlyRate × 8,760 (simple). One row per coin with every venue’s quote, cheapest first; a venue that does not price a coin is absent, never 0. venues reports each venue’s status (ok, stale, failed, unsupported) with its fetch time. KuCoin, Bitget, MEXC, BingX and HTX publish no keyless borrow rate.
GET
/
v1
/
arbitrage
/
borrow-rates
Margin borrow rates
curl --request GET \
--url https://www.sharpe.ai/api/v1/arbitrage/borrow-rates \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.sharpe.ai/api/v1/arbitrage/borrow-rates', 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/borrow-rates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"rows": [
{
"coin": "<string>",
"rates": [
{
"venue": "<string>",
"hourlyRate": 123,
"annualRate": 123,
"source": "<string>",
"asOf": "2023-11-07T05:31:56Z",
"limit": {
"amount": 123,
"unit": "coin"
}
}
],
"venueCount": 123,
"lowestAnnualRate": 123,
"lowestVenue": "<string>",
"highestAnnualRate": 123,
"highestVenue": "<string>"
}
],
"venues": [
{
"venue": "<string>",
"status": "ok",
"coins": 123,
"fetchedAt": "2023-11-07T05:31:56Z",
"reason": "<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

