Historical dataset · API key

Funding history

Every funding settlement of an underlying on every served venue, as a rate per hour, back to each listing where the venue publishes it. At most 366 days a request.

GET/api/perps/data/funding
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/funding?base=TSLA&from=2026-01-01&to=2026-10-07" \
  -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

basestringqueryrequired

The underlying: TSLA, XAU, EURUSD.

venuestringquery

Only this venue's markets.

One of hyperliquid, tradexyz, kinetiq, entropyio, paragon, lighter, gains, qfex or veranta.

fromstringquery

Start: epoch seconds, a date (2026-09-01) or an ISO time. Default: 7 days before `to`.

tostringquery

End, in the same forms. Default: now.

formatstringquerydefault json

CSV has one header row with the same field names.

One of json or csv.

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
{
  "base": "TSLA",
  "from": "2026-10-07T18:00:00Z",
  "to": "2026-10-07T20:00:00Z",
  "count": 1,
  "columns": [
    "timestamp",
    "time",
    "venue",
    "venueSymbol",
    "base",
    "fundingRateHourly"
  ],
  "rows": [
    {
      "timestamp": 1791399600,
      "time": "2026-10-07T19:00:00Z",
      "venue": "tradexyz",
      "venueSymbol": "xyz:TSLA",
      "base": "TSLA",
      "fundingRateHourly": 6.25e-06
    }
  ]
}

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.