> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sharpe.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Margin Borrow Rates API

> Spot-margin borrow rates per coin across Binance, OKX, Bybit and Gate.io, hourly and annualized, from each venue's public rate endpoint.

The interest a venue charges to borrow a coin on spot margin, per coin and venue, from the endpoints each venue publishes without an account. It is the cost of the short spot leg of a reverse cash-and-carry (sell spot, long perp) and of a leveraged long's quote borrow.

***

## List borrow rates

`GET /v1/arbitrage/borrow-rates`

One row per coin with every venue's quote, cheapest first. A venue that does not price a coin is absent from its row, never 0.

| Venue | Rate read | Tier |
| - | - | - |
| Binance | margin fee page, `dailyInterestRate` (unofficial www endpoint) | VIP 0, cross margin |
| OKX | `/api/v5/public/interest-rate-loan-quota`, `basic[].rate` (daily) | basic |
| Bybit | `/v5/spot-margin-trade/data`, `hourlyBorrowRate` | No VIP |
| Gate.io | `/api/v4/unified/history_loan_rate`, latest hourly `rate` | unified account; the 100 enabled loan currencies with the most USDT spot volume |

KuCoin, Bitget, MEXC, BingX and HTX publish no keyless borrow rate and are reported `unsupported` in `venues`.

Freshness: each venue is fetched on request and kept 5 minutes (the answer is stale after 10 minutes; `as_of` is the oldest venue answer served). After a failed refresh a venue's last good answer is served for up to 15 minutes with status `stale`, then the venue is `failed` and its coins drop out. A failed venue makes the answer degraded (never cached); every venue failing is a 503.

### Query parameters

**coin** `string`

Optional borrowed asset, case-insensitive (BTC, USDT, PEPE).

**exchanges** `string`

Comma-separated venues: Binance, OKX, Bybit, Gate.io. Default: all.

```bash cURL theme={null}
curl -G https://www.sharpe.ai/api/v1/arbitrage/borrow-rates \
  -H "Authorization: Bearer sk_live_your_key_here" \
  --data-urlencode "coin=BTC"
```

```json Response theme={null}
{
  "data": {
    "rows": [
      {
        "coin": "BTC",
        "rates": [
          {
            "venue": "Binance",
            "hourlyRate": 0.00000049125,
            "annualRate": 0.00430335,
            "source": "binance.margin-vip-spec",
            "asOf": "2026-09-30T08:07:11.062Z"
          },
          {
            "venue": "Bybit",
            "hourlyRate": 0.00000049127,
            "annualRate": 0.0043035252,
            "source": "bybit.spot-margin-data",
            "asOf": "2026-09-30T08:07:11.020Z"
          },
          {
            "venue": "Gate.io",
            "hourlyRate": 0.00000057,
            "annualRate": 0.0049932,
            "source": "gate.unified-history-loan-rate",
            "asOf": "2026-09-30T08:00:00.000Z"
          },
          {
            "venue": "OKX",
            "hourlyRate": 0.00000058,
            "annualRate": 0.0050808,
            "source": "okx.interest-rate-loan-quota",
            "asOf": "2026-09-30T08:07:11.300Z"
          }
        ],
        "venueCount": 4,
        "lowestAnnualRate": 0.00430335,
        "lowestVenue": "Binance",
        "highestAnnualRate": 0.0050808,
        "highestVenue": "OKX"
      }
    ],
    "venues": [
      { "venue": "Binance", "status": "ok", "coins": 394, "fetchedAt": "2026-09-30T08:07:11.062Z", "reason": null },
      { "venue": "OKX", "status": "ok", "coins": 172, "fetchedAt": "2026-09-30T08:07:11.300Z", "reason": null },
      { "venue": "Bybit", "status": "ok", "coins": 260, "fetchedAt": "2026-09-30T08:07:11.071Z", "reason": null },
      { "venue": "Gate.io", "status": "ok", "coins": 100, "fetchedAt": "2026-09-30T08:07:17.458Z", "reason": null },
      { "venue": "KuCoin", "status": "unsupported", "coins": 0, "fetchedAt": null, "reason": "The public lending-market rate is a flat 0.0001 for every coin with no documented period; the borrow rate needs a key." }
    ]
  },
  "meta": {
    "request_id": "req_abc123def456ghij",
    "timestamp": "2026-09-30T08:07:18.000Z",
    "elapsed_ms": 6420
  }
}
```

***

## Units

Every rate is a fraction. `hourlyRate` is interest per hour on the borrowed amount; `annualRate = hourlyRate × 8,760`, simple (not compounded). OKX and Binance publish a daily rate `d`: `hourlyRate = d / 24`, so `annualRate = d × 365`. Bybit and Gate.io publish an hourly rate. On 2026-09-30 the four venues priced BTC between 0.43% and 0.51% a year and USDT between 3.5% and 5.2%.

`asOf` is the venue's own stamp where it sends one (Bybit's server time, the hour Gate's rate applies to), else the time Sharpe fetched it (OKX, Binance). A `""`, missing or zero rate is treated as not priced.

`limit` is the most one account can borrow at the venue's entry tier, `{ "amount", "unit" }`: `unit: "coin"` for Bybit (`maxBorrowingAmount`, No VIP), OKX (`quota`, Lv1) and Binance (`borrowLimit`, VIP 0), `unit: "usd"` (USDT) for Gate.io (`user_max_borrow_amount`). On 2026-10-31 BTC read 100 BTC on Binance, 300 BTC on Bybit and 120,000,000 USDT on Gate.io. `null` means the venue publishes no limit: unknown, not unlimited. A cheap rate on a small limit cannot fund a large short.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.