Live API · no key
List funding gaps
The widest carry between two venues on each asset, widest first: the cheapest venue to hold a long, the richest to hold a short, and the thinner side's open interest.
/api/perps/fundingcurl "https://optimistfi.com/api/perps/funding?minLegOi=1000000&limit=20"Parameters
classstringquery
Only assets of this class.
One of crypto, equity, index, fx or commodity.
venuestringquery
Only gaps on assets listed on this venue.
One of veranta, hyperliquid, tradexyz, kinetiq, entropyio, paragon, lighter, aster, dydx, gmx, paradex, extended, qfex, vest, vestmarkets, orderly, nado, kraken, variational, polymarket, pacifica, edgex, grvt, apex, aevo, gains, ostium, jupiter, hibachi, bluefin, okx, bitget, gate, mexc, htx, kucoin, deribit, bitfinex, phemex, woox, binance, bybit, cme, bingx, whitebit, cryptocom or kalshi.
minLegOinumberquery
Minimum open interest on the thinner of the two venues, USD.
From 0.
limitintegerquery
Rows per page. Without it every row is returned.
From 1 to 1,000.
offsetintegerquerydefault 0
Rows to skip; follow `next` rather than computing it.
From 0 to 1,000,000.
Response
A real response, trimmed to one row per list. Every response carries asOf, the time the data was read, and docs, a link here.
{
"asOf": "2026-10-07T20:43:36.898Z",
"query": {
"minLegOi": 1000000,
"limit": 1
},
"count": 1,
"total": 1,
"offset": 0,
"limit": 1,
"next": null,
"data": [
{
"base": "NATGAS",
"slug": "natgas",
"assetClass": "commodity",
"longVenue": "gmx",
"shortVenue": "extended",
"longCostHourly": 0.000399,
"shortEarnHourly": 0.001882,
"spreadHourly": 0.001483,
"spreadApr": 12.992771,
"thinnerLegOpenInterestUsd": 1222012.098066,
"priceDispersionBps": 576.521934
}
],
"docs": "https://optimistfi.com/perps/data"
}Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_parameter | A parameter is missing, out of range or not one of its allowed values. The message names it. |
| 503 | unavailable | No venue, or the dataset, answered in time. |
Every error carries error (the reason in words), code and requestId. See Errors and rate limits.

