Historical dataset · API key

List dataset markets

Every stock, commodity, FX and index perp the dataset serves: venue, symbol, underlying, leverage cap, funding interval and when its record starts.

GET/api/perps/data/markets
Base URL
https://optimistfi.com
Authentication
Bearer API key
Freshness
Private, cached for 5 minutes; the hourly record gains a row an hour.
Example request
curl "https://optimistfi.com/api/perps/data/markets?class=equity" \
  -H "Authorization: Bearer $OPTIMISTFI_API_KEY"
Send the key from your server, never from a browser. Keys are issued on the Get an API key page.

Parameters

classstringquery

A comma list of classes. Default: all four.

One of equity, commodity, fx or index.

Response

A real response, trimmed to one row per list. With format=csv the same rows come as CSV under one header row.

200 · application/json
{
  "venues": [
    "hyperliquid",
    "tradexyz",
    "kinetiq",
    "entropyio",
    "paragon",
    "lighter",
    "gains",
    "qfex",
    "veranta"
  ],
  "classes": [
    "equity",
    "commodity",
    "fx",
    "index"
  ],
  "markets": [
    {
      "venue": "tradexyz",
      "venueSymbol": "xyz:TSLA",
      "base": "TSLA",
      "assetClass": "equity",
      "ticker": "TSLA",
      "maxLeverage": 20,
      "fundingIntervalHours": 1,
      "firstSeen": "2026-09-28T18:53:47Z",
      "lastSeen": "2026-10-07T20:00:14Z"
    }
  ],
  "count": 1,
  "byVenue": {
    "tradexyz": {
      "equity": 1
    }
  },
  "bases": 1
}

Errors

StatusCodeWhen
400invalid_parameterA parameter is missing, out of range or not one of its allowed values. The message names it.
401unauthorizedA dataset endpoint was called without a valid API key.
429rate_limitedMore than 60 dataset requests in a minute on one key.
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.