Live API · no key

Get an asset

One underlying on every venue, with each venue's funding history and statistics: average, range and the share of hours longs paid.

GET/api/perps/assets/{asset}
Base URL
https://optimistfi.com
Authentication
None
Freshness
Funding history refreshes every 10 minutes; quotes with the snapshot.
Example request
curl "https://optimistfi.com/api/perps/assets/btc?hours=168"

Parameters

assetstringpathrequired

The underlying: btc, eth, tsla, xau.

hoursintegerquerydefault 168

Hours of funding history.

From 24 to 480.

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",
  "historyHours": 24,
  "asset": {
    "base": "BTC",
    "slug": "btc",
    "assetClass": "crypto",
    "venueCount": 23,
    "maxLeverage": 200,
    "maxLeverageVenue": "gmx",
    "upsideMaxLeverage": 500,
    "price": 83373.928875,
    "change24hPct": -2.622364,
    "openInterestUsd": 5124516105.862597,
    "volume24hUsd": 7192537846.323318,
    "fundingRateHourly": 1.2e-05,
    "fundingApr": 0.100983,
    "fundingSpreadHourly": 7e-05,
    "fundingSpreadApr": 0.617267,
    "cheapestLong": "gmx",
    "richestShort": "bluefin",
    "priceDispersionBps": 15.03375,
    "venues": [
      {
        "venue": "veranta",
        "venueSymbol": "BTC/USD",
        "venueMarketId": "1",
        "base": "BTC",
        "quote": "USD",
        "assetClass": "crypto",
        "contractMultiplier": 1,
        "markPrice": null,
        "indexPrice": null,
        "change24hPct": null,
        "volume24hUsd": null,
        "openInterestUsd": 8747312.72,
        "openInterestBase": 108.800116,
        "fundingRateHourly": 1.2e-05,
        "shortFundingRateHourly": -1.2e-05,
        "borrowRateHourlyLong": 0,
        "borrowRateHourlyShort": 0,
        "openInterestLongUsd": 4159682.15,
        "openInterestShortUsd": 4587630.57,
        "fundingIntervalHours": 1,
        "nextFundingTime": null,
        "maxLeverage": 50,
        "upsideMaxLeverage": 500,
        "premium": null,
        "fundingApr": 0.105125,
        "openInterestShare": 0.001707
      }
    ],
    "excluded": []
  },
  "history": [
    {
      "venue": "veranta",
      "venueSymbol": "BTC/USD",
      "fundingIntervalHours": 1,
      "points": [],
      "error": "the data layer did not answer in time",
      "stats": {
        "count": 0,
        "avgHourly": null,
        "minHourly": null,
        "maxHourly": null,
        "lastHourly": null,
        "lastTime": null,
        "longsPaidShare": null
      }
    }
  ],
  "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.
404not_foundNo such asset or endpoint.
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.