/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.0000053687362009, "intervalHours": 8, "fundingRate8h": 0.0000053687362009, "nextFundingTime": "2026-11-22T00:00:00.000Z", "openInterest": 67532397, "openInterestUsd": 63122531, "at": "2026-11-21T17:33:23.202Z" }, { "venue": "Binance", "instrument": "XRPUSDT perpetual", "fundingRate": 0.00001478, "intervalHours": 8, "fundingRate8h": 0.00001478, "nextFundingTime": "2026-11-22T00:00:00.000Z", "openInterest": 273757510, "openInterestUsd": 255855789, "at": "2026-11-21T17:33:23.000Z" }, { "venue": "Bybit", "instrument": "XRPUSDT perpetual", "fundingRate": -0.00000262, "intervalHours": 8, "fundingRate8h": -0.00000262, "nextFundingTime": "2026-11-22T00:00:00.000Z", "openInterest": 189919764.9, "openInterestUsd": 177442036, "at": "2026-11-21T17:33:23.326Z" }, { "venue": "Hyperliquid", "instrument": "XRP perpetual (USDC)", "fundingRate": 0.0000019213, "intervalHours": 1, "fundingRate8h": 0.0000153704, "nextFundingTime": "2026-11-21T18:00:00.000Z", "openInterest": 64041734, "openInterestUsd": 59864932, "at": "2026-11-21T17:33:23.334Z" }, { "venue": "Bitget", "instrument": "XRPUSDT perpetual", "fundingRate": 0.000006, "intervalHours": 8, "fundingRate8h": 0.000006, "nextFundingTime": "2026-11-22T00:00:00.000Z", "openInterest": 167820923, "openInterestUsd": 156845435, "at": "2026-11-21T17:33:23.205Z" } ], "openInterestTotal": { "openInterest": 858170078.9, "openInterestUsd": 802018590, "fundingRate8hWeighted": 0.00000817530582313, "venues": [ "OKX", "Binance", "Bybit", "Hyperliquid", "Bitget" ] }, "longShortRatios": [ { "venue": "OKX", "measure": "all accounts", "longShortRatio": 2.21, "period": "1h", "at": "2026-11-21T17:00:00.000Z" }, { "venue": "OKX", "measure": "top traders, accounts", "longShortRatio": 1.5598, "period": "1h", "at": "2026-11-21T17:00:00.000Z" }, { "venue": "OKX", "measure": "top traders, positions", "longShortRatio": 0.8851, "period": "1h", "at": "2026-11-21T17:00:00.000Z" }, { "venue": "Binance", "measure": "all accounts", "longShortRatio": 2.6792, "longShare": 0.7282, "shortShare": 0.2718, "period": "1h", "at": "2026-11-21T17:00:00.000Z" }, { "venue": "Binance", "measure": "top traders, accounts", "longShortRatio": 3.1649, "longShare": 0.7599, "shortShare": 0.2401, "period": "1h", "at": "2026-11-21T17:00:00.000Z" } ], "takerVolume": [ { "venue": "Binance", "hourStart": "2026-11-21T16:00:00.000Z", "buyVolume": 7647365.1, "sellVolume": 10122820.1, "buySellRatio": 0.7555 }, { "venue": "OKX", "hourStart": "2026-11-21T16:00:00.000Z", "buyVolume": 5357864, "sellVolume": 4211846, "buySellRatio": 1.2721 } ], "longShort": { "longShortAccountRatio": 2.21, "at": "2026-11-21T17: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