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.

GET/api/perps/funding
Base URL
https://optimistfi.com
Authentication
None
Freshness
Rebuilt every 4 seconds (Hyperliquid and its builder venues every 10); polling faster returns the same data.
Example request
curl "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.

200 · application/json
{
  "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

StatusCodeWhen
400invalid_parameterA parameter is missing, out of range or not one of its allowed values. The message names it.
503unavailableNo venue, or the dataset, answered in time.

Every error carries error (the reason in words), code and requestId. See Errors and rate limits.

ScoutJUST THIS STORY

LET’S MAKE THIS USEFUL · 1 OF 5

How would you like me to explain this?

Tell me what you want from this read. Start with a quick note, then adjust the details. Your other stories stay as they are.

We’ll remember your view of this story. The published article stays unchanged.

THIS STORY’S READING VIEWStandard · The whole picture

Clear explanations with context. Both sides of the evidence.