/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.0000644345650114, "intervalHours": 8, "fundingRate8h": 0.0000644345650114, "nextFundingTime": "2026-10-19T08:00:00.000Z", "openInterest": 67563172, "openInterestUsd": 88744226, "at": "2026-10-19T06:44:03.833Z" }, { "venue": "Binance", "instrument": "XRPUSDT perpetual", "fundingRate": 0.0001, "intervalHours": 8, "fundingRate8h": 0.0001, "nextFundingTime": "2026-10-19T08:00:00.000Z", "openInterest": 318351171.5, "openInterestUsd": 418122429, "at": "2026-10-19T06:44:03.001Z" }, { "venue": "Bybit", "instrument": "XRPUSDT perpetual", "fundingRate": 0.00007263, "intervalHours": 8, "fundingRate8h": 0.00007263, "nextFundingTime": "2026-10-19T08:00:00.000Z", "openInterest": 202925708.9, "openInterestUsd": 266542919, "at": "2026-10-19T06:44:03.883Z" }, { "venue": "Hyperliquid", "instrument": "XRP perpetual (USDC)", "fundingRate": 0.0000125, "intervalHours": 1, "fundingRate8h": 0.0001, "nextFundingTime": "2026-10-19T07:00:00.000Z", "openInterest": 169245078, "openInterestUsd": 222337259, "at": "2026-10-19T06:44:04.219Z" }, { "venue": "Bitget", "instrument": "XRPUSDT perpetual", "fundingRate": 0.0001, "intervalHours": 8, "fundingRate8h": 0.0001, "nextFundingTime": "2026-10-19T08:00:00.000Z", "openInterest": 190332560, "openInterestUsd": 250039884, "at": "2026-10-19T06:44:03.841Z" } ], "openInterestTotal": { "openInterest": 1055104770.4, "openInterestUsd": 1385920197, "fundingRate8hWeighted": 0.000082853134441, "venues": [ "OKX", "Binance", "Bybit", "Hyperliquid", "Bitget" ] }, "longShortRatios": [ { "venue": "OKX", "measure": "all accounts", "longShortRatio": 3.61, "period": "1h", "at": "2026-10-19T06:00:00.000Z" }, { "venue": "OKX", "measure": "top traders, accounts", "longShortRatio": 1.3146, "period": "1h", "at": "2026-10-19T06:00:00.000Z" }, { "venue": "OKX", "measure": "top traders, positions", "longShortRatio": 0.8627, "period": "1h", "at": "2026-10-19T06:00:00.000Z" }, { "venue": "Binance", "measure": "all accounts", "longShortRatio": 2.8241, "longShare": 0.7385, "shortShare": 0.2615, "period": "1h", "at": "2026-10-19T06:00:00.000Z" }, { "venue": "Binance", "measure": "top traders, accounts", "longShortRatio": 3.4326, "longShare": 0.7744, "shortShare": 0.2256, "period": "1h", "at": "2026-10-19T06:00:00.000Z" } ], "takerVolume": [ { "venue": "Binance", "hourStart": "2026-10-19T05:00:00.000Z", "buyVolume": 5430754.4, "sellVolume": 5818304.8, "buySellRatio": 0.9334 }, { "venue": "OKX", "hourStart": "2026-10-19T05:00:00.000Z", "buyVolume": 2487167, "sellVolume": 1789849, "buySellRatio": 1.3896 } ], "longShort": { "longShortAccountRatio": 3.61, "at": "2026-10-19T06: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