GET /market/funding
GET

/v1/market/funding

Perpetual funding rates and open interest on OKX, Binance, Bybit, Hyperliquid, Bitget and Gate: each venue's rate for its own period (intervalHours: Hyperliquid pays every hour) and the same rate over 8 hours (fundingRate8h, comparable across venues), the total open interest, long/short ratios (all accounts on OKX, Binance, Bybit and Gate; top traders by accounts and by position size on OKX and Binance) and taker buy/sell volume over the last full hour (Binance, OKX). Positive funding = longs pay shorts. longShort is the OKX all-accounts ratio, kept for older clients

AuthNone — works without a key

Request

GEThttps://api.xrpl.to/v1/market/funding
Query parameterValueDescription
assetXRP|BTC|ETH (default XRP)
curl 'https://api.xrpl.to/v1/market/funding'

Response

200Example response775 ms · just now · 3.8 KB · 136 lines
https://api.xrpl.to/v1/market/funding
{
  "success": true,
  "asset": "XRP",
  "venues": [
    {
      "venue": "OKX",
      "instrument": "XRP-USDT-SWAP",
      "fundingRate": -0.0000063209080795,
      "intervalHours": 8,
      "fundingRate8h": -0.0000063209080795,
      "nextFundingTime": "2026-10-12T08:00:00.000Z",
      "openInterest": 65658123,
      "openInterestUsd": 92610782,
      "at": "2026-10-12T01:03:22.921Z"
    },
    {
      "venue": "Binance",
      "instrument": "XRPUSDT perpetual",
      "fundingRate": 0.00001036,
      "intervalHours": 8,
      "fundingRate8h": 0.00001036,
      "nextFundingTime": "2026-10-12T08:00:00.000Z",
      "openInterest": 295692903.1,
      "openInterestUsd": 416961604,
      "at": "2026-10-12T01:03:22.002Z"
    },
    {
      "venue": "Bybit",
      "instrument": "XRPUSDT perpetual",
      "fundingRate": 0.00008645,
      "intervalHours": 8,
      "fundingRate8h": 0.00008645,
      "nextFundingTime": "2026-10-12T08:00:00.000Z",
      "openInterest": 198048327,
      "openInterestUsd": 279287751,
      "at": "2026-10-12T01:03:22.962Z"
    },
    {
      "venue": "Hyperliquid",
      "instrument": "XRP perpetual (USDC)",
      "fundingRate": 0.0000125,
      "intervalHours": 1,
      "fundingRate8h": 0.0001,
      "nextFundingTime": "2026-10-12T02:00:00.000Z",
      "openInterest": 195628970,
      "openInterestUsd": 275915099,
      "at": "2026-10-12T01:03:23.564Z"
    },
    {
      "venue": "Bitget",
      "instrument": "XRPUSDT perpetual",
      "fundingRate": 0.000005,
      "intervalHours": 8,
      "fundingRate8h": 0.000005,
      "nextFundingTime": "2026-10-12T08:00:00.000Z",
      "openInterest": 189845987,
      "openInterestUsd": 267701826,
      "at": "2026-10-12T01:03:22.958Z"
    }
  ],
  "openInterestTotal": {
    "openInterest": 1045448870.1,
    "openInterestUsd": 1474317364,
    "fundingRate8hWeighted": 0.0000468061020905,
    "venues": [
      "OKX",
      "Binance",
      "Bybit",
      "Hyperliquid",
      "Bitget"
    ]
  },
  "longShortRatios": [
    {
      "venue": "OKX",
      "measure": "all accounts",
      "longShortRatio": 3.08,
      "period": "1h",
      "at": "2026-10-12T00:00:00.000Z"
    },
    {
      "venue": "OKX",
      "measure": "top traders, accounts",
      "longShortRatio": 1.3896,
      "period": "1h",
      "at": "2026-10-12T01:00:00.000Z"
    },
    {
      "venue": "OKX",
      "measure": "top traders, positions",
      "longShortRatio": 0.8784,
      "period": "1h",
      "at": "2026-10-12T01:00:00.000Z"
    },
    {
      "venue": "Binance",
      "measure": "all accounts",
      "longShortRatio": 2.406,
      "longShare": 0.7064,
      "shortShare": 0.2936,
      "period": "1h",
      "at": "2026-10-12T01:00:00.000Z"
    },
    {
      "venue": "Binance",
      "measure": "top traders, accounts",
      "longShortRatio": 2.8168,
      "longShare": 0.738,
      "shortShare": 0.262,
      "period": "1h",
      "at": "2026-10-12T01:00:00.000Z"
    }
  ],
  "takerVolume": [
    {
      "venue": "Binance",
      "hourStart": "2026-10-11T23:00:00.000Z",
      "buyVolume": 4201532.2,
      "sellVolume": 3484328.2,
      "buySellRatio": 1.2058
    },
    {
      "venue": "OKX",
      "hourStart": "2026-10-12T00:00:00.000Z",
      "buyVolume": 1345471,
      "sellVolume": 1184344,
      "buySellRatio": 1.136
    }
  ],
  "longShort": {
    "longShortAccountRatio": 3.08,
    "at": "2026-10-12T00:00:00.000Z"
  },
  "note": "fundingRate is each venue's rate for its own period (intervalHours), paid at nextFundingTime: positive means longs pay shorts (longs crowded), negative the reverse. fundingRate8h is the same rate over 8 hours, so venues compare: Hyperliquid pays every hour, an eighth of the 8-hour rate each time. openInterestTotal adds the venues that answered, each counting one side of the book; its fundingRate8h…",
  "source": "OKX, Binance, Bybit, Hyperliquid, Bitget and Gate public market data"
}

Long arrays and strings are shortened in the example; Send request for the full answer.

Shapeas documented
{
  success,
  asset,
  venues[] {
    venue,
    instrument,
    fundingRate,
    intervalHours,
    fundingRate8h,
    nextFundingTime,
    openInterest,
    openInterestUsd,
    at
  },
  openInterestTotal {
    openInterest,
    openInterestUsd,
    fundingRate8hWeighted,
    venues[]
  },
  longShortRatios[] {
    venue,
    measure,
    longShortRatio,
    longShare?,
    shortShare?,
    longAccounts?,
    shortAccounts?,
    period,
    at
  },
  takerVolume[] {
    venue,
    hourStart,
    buyVolume,
    sellVolume,
    buySellRatio
  },
  longShort { longShortAccountRatio, at },
  note,
  source
}

What it does

Perpetual funding rates and open interest on OKX, Binance, Bybit, Hyperliquid, Bitget and Gate: each venue's rate for its own period (intervalHours: Hyperliquid pays every hour) and the same rate over 8 hours (fundingRate8h, comparable across venues), the total open interest, long/short ratios (all accounts on OKX, Binance, Bybit and Gate; top traders by accounts and by position size on OKX and Binance) and taker buy/sell volume over the last full hour (Binance, OKX). Positive funding = longs pay shorts. longShort is the OKX all-accounts ratio, kept for older clients

OpenAPI