/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
Request
https://api.xrpl.to/v1/market/funding| Query parameter | Value | Description |
|---|---|---|
| asset | XRP|BTC|ETH (default XRP) |
curl 'https://api.xrpl.to/v1/market/funding'
Response
https://api.xrpl.to/v1/market/funding{ "success": true, "asset": "XRP", "venues": [ { "venue": "OKX", "instrument": "XRP-USDT-SWAP", "fundingRate": -0.0000560712910615, "intervalHours": 8, "fundingRate8h": -0.0000560712910615, "nextFundingTime": "2026-11-01T08:00:00.000Z", "openInterest": 82670540, "openInterestUsd": 103660590, "at": "2026-11-01T07:08:11.595Z" }, { "venue": "Binance", "instrument": "XRPUSDT perpetual", "fundingRate": 0.0001, "intervalHours": 8, "fundingRate8h": 0.0001, "nextFundingTime": "2026-11-01T08:00:00.000Z", "openInterest": 267762151, "openInterestUsd": 335915052, "at": "2026-11-01T07:08:11.000Z" }, { "venue": "Bybit", "instrument": "XRPUSDT perpetual", "fundingRate": -0.0000464, "intervalHours": 8, "fundingRate8h": -0.0000464, "nextFundingTime": "2026-11-01T08:00:00.000Z", "openInterest": 242191679.8, "openInterestUsd": 303684147, "at": "2026-11-01T07:08:11.653Z" }, { "venue": "Hyperliquid", "instrument": "XRP perpetual (USDC)", "fundingRate": 0.0000125, "intervalHours": 1, "fundingRate8h": 0.0001, "nextFundingTime": "2026-11-01T08:00:00.000Z", "openInterest": 156946702, "openInterestUsd": 196858248, "at": "2026-11-01T07:08:11.746Z" }, { "venue": "Bitget", "instrument": "XRPUSDT perpetual", "fundingRate": 0.0001, "intervalHours": 8, "fundingRate8h": 0.0001, "nextFundingTime": "2026-11-01T08:00:00.000Z", "openInterest": 185154419, "openInterestUsd": 232202157, "at": "2026-11-01T07:08:11.615Z" } ], "openInterestTotal": { "openInterest": 1045433121.8, "openInterestUsd": 1311136491, "fundingRate8hWeighted": 0.0000434818704597, "venues": [ "OKX", "Binance", "Bybit", "Hyperliquid", "Bitget" ] }, "longShortRatios": [ { "venue": "OKX", "measure": "all accounts", "longShortRatio": 3.78, "period": "1h", "at": "2026-11-01T06:00:00.000Z" }, { "venue": "OKX", "measure": "top traders, accounts", "longShortRatio": 2.0815, "period": "1h", "at": "2026-11-01T07:00:00.000Z" }, { "venue": "OKX", "measure": "top traders, positions", "longShortRatio": 0.8871, "period": "1h", "at": "2026-11-01T07:00:00.000Z" }, { "venue": "Binance", "measure": "all accounts", "longShortRatio": 2.5249, "longShare": 0.7163, "shortShare": 0.2837, "period": "1h", "at": "2026-11-01T07:00:00.000Z" }, { "venue": "Binance", "measure": "top traders, accounts", "longShortRatio": 3.0306, "longShare": 0.7519, "shortShare": 0.2481, "period": "1h", "at": "2026-11-01T07:00:00.000Z" } ], "takerVolume": [ { "venue": "Binance", "hourStart": "2026-11-01T06:00:00.000Z", "buyVolume": 4154320.8, "sellVolume": 3657944, "buySellRatio": 1.1357 }, { "venue": "OKX", "hourStart": "2026-11-01T06:00:00.000Z", "buyVolume": 1346811, "sellVolume": 1595327, "buySellRatio": 0.8442 } ], "longShort": { "longShortAccountRatio": 3.78, "at": "2026-11-01T06: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.
{ 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