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}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.
{
"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
| Status | Code | When |
|---|---|---|
| 400 | invalid_parameter | A parameter is missing, out of range or not one of its allowed values. The message names it. |
| 404 | not_found | No such asset or endpoint. |
| 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.

