Perpetual futures
Perps market history
One perp market over time (1d to 90d): price, open interest, funding, taker buying vs selling, big accounts' net position; plus the latest book depth (±0.5/1/2%) and big accounts' P&L and leverage.
get_perps_historycurl https://mcp.optimistfi.com/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_perps_history","arguments":{"entity":"SOL","window":"7d"}}}'When a model calls it
Models choose a tool from its description. This is the one the server publishes:
One perp market over time (1d to 90d): price, open interest, funding, taker buying vs selling, big accounts' net position; plus the latest book depth (±0.5/1/2%) and big accounts' P&L and leverage. Use when the user asks: X funding this week; are whales adding to X; how deep is X's book. Args: entity; window.
- X funding this week
- are whales adding to X
- how deep is X's book
Parameters
entitystringrequired
The market: a ticker or symbol (NVDA, BTC, XAU), a company name (Tesla) or a common asset name (bitcoin, gold, crude oil).
windowstringdefault "7d"
How far back: 1d (hourly steps), 7d (4-hourly), 30d or 90d (daily).
Accepts 1d, 7d, 30d, 90d.
Response
A real response to the example call, trimmed: lists cut to two items, long text cut short. The result's content holds the answer as JSON text; parsed, it reads:
{
"entity": {
"symbol": "SOL"
},
"type": "perps_history",
"as_of": "2026-10-29T21:20:07Z",
"confidence": "reported",
"source": {
"name": "OptimistFi perps data layer — each venue's public market data, stored hourly",
"url": "https://optimistfi.com/perps/markets/sol",
"license": "computed"
},
"data": {
"base": "SOL",
"found": true,
"asOf": "2026-10-29T21:20:07Z",
"window": "7d",
"stepHours": 4,
"price": {
"venue": "gate",
"points": [
[
"2026-10-22T20:00:00Z",
103.61
],
[
"2026-10-23T00:00:00Z",
104.21
],
"… 41 more"
]
},
"openInterestUsd": [
[
"2026-10-22T20:00:00Z",
3177180000
],
[
"2026-10-23T00:00:00Z",
3192600000
],
"… 41 more"
],
"openInterestComparableCoverage": {
"available": true,
"instruments": [
{
"venue": "apex",
"symbol": "SOLUSDT"
},
{
"venue": "aster",
"symbol": "SOLUSD1"
},
"… 48 more"
],
"excludedInstruments": 4,
"definition": "Same instruments with nonmissing OI at every displayed source timestamp; USD notional, not directional money flow.",
"sourceTimestamps": [
1792710000,
1792724400,
"… 41 more"
]
},
"openInterestUnadjustedUsd": [
[
"2026-10-22T20:00:00Z",
3177200000
],
[
"2026-10-23T00:00:00Z",
3192620000
],
"… 41 more"
],
"openInterestVenuesJoined": [
{
"at": "2026-10-23T08:00:00Z",
"venues": [
"aevo"
]
}
],
"openInterestVenuesMissing": [
{
"at": "2026-10-23T04:00:00Z",
"venues": [
"aevo"
]
},
{
"at": "2026-10-23T12:00:00Z",
"venues": [
"aevo"
]
},
"… 13 more"
],
"readingsLeftOut": [
"2026-10-23T11:00:00Z",
"2026-10-24T12:00:00Z",
"… 11 more"
],
"openInterestChange": {
"from": "2026-10-22T22:00:00Z",
"to": "2026-10-29T21:00:00Z",
"usdChange": -0.07685,
"usdFrom": 3183268946,
"usdTo": 2938637690,
"quantityChange": -0.002985,
"quantityBasis": "price_adjusted_notional_oi_proxy",
"quantityNote": "After approximately removing the price effect, covered notional OI implies a quantity change of -0.30%. This is a derived proxy, not a direct contract count.",
"venuesIncluded": [
"apex",
"aster",
"… 33 more"
],
"marketsAdded": [
{
"venue": "aster",
"symbol": "SOLUSDC",
"usd": 11276
}
],
"marketsRemoved": [
{
"venue": "polymarket",
"symbol": "SOL-USD",
"usd": 1168701
}
],
"marketsNotRead": [
{
"venue": "aevo",
"symbol": "SOL-PERP",
"at": "2026-10-22T22:00:00Z"
}
],
"receipt": {
"metric": "openInterestChange",
"unit": "fraction",
"observationType": "derived",
"sourceView": "hourly_readings",
"windowStart": "2026-10-22T22:00:00Z",
"windowEnd": "2026-10-29T21:00:00Z",
"venuesIncluded": [
"apex",
"aster",
"… 33 more"
],
"convention": "one_side",
"calculation": {
"formula": "usdChange: usdTo ÷ usdFrom − 1, the open interest of the markets read at both ends summed at each end; quantityChange: Σ(quantity at the end × price at the start) ÷ Σ(quantity at the start × price at the start) − 1, an inverse book's quantity being its open interest in dollars…",
"inputs": {
"quantityBasis": "price_adjusted_notional_oi_proxy"
}
}
},
"change": -0.07685,
"venues": 35
},
"fundingAnnualizedOiWeighted": [
[
"2026-10-22T20:00:00Z",
0.07254
],
[
"2026-10-23T00:00:00Z",
0.1097
],
"… 41 more"
],
"fundingSettledThrough": {
"aevo": "2026-10-29T20:00:00Z",
"apex": "2026-10-29T18:00:00Z",
"aster": "2026-10-29T16:00:00Z",
"bingx": "2026-10-29T16:00:00Z",
"bitfinex": "2026-10-29T16:00:00Z",
"bitget": "2026-10-29T16:00:00Z",
"bluefin": "2026-10-29T17:00:00Z",
"cryptocom": "2026-10-29T20:00:00Z",
"deribit": "2026-10-29T16:00:00Z",
"dydx": "2026-10-29T18:00:00Z",
"edgex": "2026-10-29T16:00:00Z",
"extended": "2026-10-29T21:00:00Z",
"gate": "2026-10-29T16:00:00Z",
"gmx": "2026-10-29T17:00:00Z",
"grvt": "2026-10-29T16:00:00Z",
"hibachi": "2026-10-29T18:00:00Z",
"htx": "2026-10-29T08:00:00Z",
"hyperliquid": "2026-10-29T15:00:00Z",
"kraken": "2026-10-29T18:00:00Z",
"kucoin": "2026-10-29T16:00:00Z",
"lighter": "2026-10-29T19:00:00Z",
"mexc": "2026-10-29T16:00:00Z",
"nado": "2026-10-29T17:00:00Z",
"okx": "2026-10-29T16:00:00Z",
"orderly": "2026-10-29T16:00:00Z",
"pacifica": "2026-10-29T18:00:00Z",
"paradex": "2026-10-29T16:00:00Z",
"phemex": "2026-10-29T16:00:00Z",
"vest": "2026-10-29T21:00:00Z",
"woox": "2026-10-29T16:00:00Z"
},
"fundingPaid": {
"aevo": {
"1d": 0.000173,
"7d": 0.001375,
"30d": 0.003211
},
"apex": {
"1d": 0.0002466,
"7d": 0.001829,
"30d": 0.00308
},
"aster": {
"1d": 0.0002813,
"7d": 0.001608,
"30d": 0.004153
},
"bingx": {
"1d": 0.00026,
"7d": 0.001834,
"30d": 0.006486
},
"bitfinex": {
"1d": 0,
"7d": 0,
"30d": 0
},
"bitget": {
"1d": 0.000237,
"7d": 0.001376,
"30d": 0.004209
},
"bluefin": {
"1d": -0.001361,
"7d": -0.0009042,
"30d": -0.03456
},
"cryptocom": {
"1d": 0.00009976,
"7d": 0.001179
},
"deribit": {
"1d": 0.0001913,
"7d": 0.001835,
"30d": 0.004661
},
"dydx": {
"1d": 0.000026,
"7d": 0.0008119,
"30d": 0.0007296
},
"edgex": {
"1d": 0.00025,
"7d": 0.001941,
"30d": 0.005809
},
"extended": {
"1d": 0.00031,
"7d": 0.002123,
"30d": 0.006738
},
"gate": {
"1d": 0.000106,
"7d": 0.00118,
"30d": 0.001705
},
"gmx": {
"1d": 0.0002364,
"7d": 0.002661,
"30d": 0.009229
},
"grvt": {
"1d": 0.000292,
"7d": 0.002054,
"30d": 0.007915
},
"hibachi": {
"1d": -0.000011,
"7d": 0.003262,
"30d": 0.007393
},
"hyperliquid": {
"1d": 0.000195,
"7d": 0.001705,
"30d": 0.005581
},
"kraken": {
"1d": 0.0004387,
"7d": 0.001557,
"30d": 0.004997
},
"kucoin": {
"1d": 0.000194,
"7d": 0.001034,
"30d": 0.002456
},
"lighter": {
"1d": 0.000264,
"7d": 0.001895,
"30d": 0.001591
},
"mexc": {
"1d": 0.000207,
"7d": 0.001438,
"30d": 0.003311
},
"nado": {
"1d": 0.00021,
"7d": 0.001147,
"30d": 0.00377
},
"okx": {
"1d": 0.0001885,
"7d": 0.001276,
"30d": 0.003432
},
"orderly": {
"1d": 0.0001254,
"7d": 0.0004078,
"30d": 0.0000742
},
"pacifica": {
"1d": 0.0002625,
"7d": 0.002063,
"30d": 0.007972
},
"paradex": {
"1d": 0.0002063,
"7d": 0.001587,
"30d": 0.004723
},
"phemex": {
"1d": 0.0002953,
"7d": 0.001388,
"30d": 0.004973
},
"vest": {
"1d": 0.0001713,
"7d": -0.0009315,
"30d": -0.006055
},
"woox": {
"1d": 0.0002079,
"7d": 0.001437,
"30d": 0.003328
}
},
"takerFlowUsd": [
{
"at": "2026-10-22T20:00:00Z",
"buy": 25520906,
"sell": 26464893,
"net": -943987,
"venues": [
"aster",
"deribit",
"… 5 more"
],
"hoursRecorded": {
"hyperliquid": 1
}
},
{
"at": "2026-10-23T00:00:00Z",
"buy": 108988914,
"sell": 105877675,
"net": 3111239,
"venues": [
"aster",
"deribit",
"… 5 more"
],
"hoursRecorded": {
"hyperliquid": 1
}
},
"… 41 more"
],
"receipts": {
"openInterestUsd": {
"metric": "openInterestUsd",
"unit": "USD",
"observationType": "derived",
"sourceView": "fixed_instrument_cohort",
"windowStart": "2026-10-22T20:00:00Z",
"windowEnd": "2026-10-29T20:00:00Z",
"venuesIncluded": [
"apex",
"aster",
"… 32 more"
],
"venuesExcluded": [
{
"venue": "binance",
"reason": "archive_day_behind"
},
{
"venue": "bybit",
"reason": "archive_day_behind"
}
],
"convention": "one_side",
"instrumentsIncluded": [
{
"venue": "apex",
"symbol": "SOLUSDT"
},
{
"venue": "aster",
"symbol": "SOLUSD1"
},
"… 48 more"
],
"available": true,
"definition": "Same instruments with nonmissing OI at every displayed source timestamp; USD notional, not directional money flow."
},
"fundingAnnualizedOiWeighted": {
"metric": "fundingAnnualizedOiWeighted",
"unit": "fraction a year",
"observationType": "derived",
"sourceView": "hourly_readings",
"venuesIncluded": [
"aevo",
"apex",
"… 33 more"
],
"venuesExcluded": [
{
"venue": "jupiter",
"reason": "not_applicable"
}
],
"calculation": {
"formula": "sum(hourly rate × open interest) / sum(open interest) × 8,760",
"inputs": {
"continuous_accrual": 6,
"current_indicative": 20,
"not_stated": 4,
"settled": 5
}
}
},
"openInterestUnadjustedUsd": {
"metric": "openInterestUsd",
"unit": "USD",
"observationType": "derived",
"sourceView": "hourly_readings",
"windowStart": "2026-10-22T20:00:00Z",
"windowEnd": "2026-10-29T20:00:00Z",
"venuesIncluded": [
"aevo",
"apex",
"… 34 more"
],
"venuesExcluded": [
{
"venue": "binance",
"reason": "archive_day_behind"
},
{
"venue": "bybit",
"reason": "archive_day_behind"
}
],
"convention": "one_side"
}
},
"longShort": {
"accounts": {
"definition": "Accounts long per account short.",
"venues": [
{
"venue": "binance",
"symbol": "SOLUSDC",
"at": "2026-10-28T23:00:00Z",
"latest": 2.54,
"dayBefore": 2.697,
"note": "From the venue's public data archive, published a day after each UTC day; through 2026-10-28.",
"points": [
[
"2026-10-22T20:00:00Z",
2.512
],
[
"2026-10-23T00:00:00Z",
2.469
],
"… 35 more"
]
},
{
"venue": "binance",
"symbol": "SOLUSDT",
"at": "2026-10-28T23:00:00Z",
"latest": 3.035,
"dayBefore": 3.052,
"note": "From the venue's public data archive, published a day after each UTC day; through 2026-10-28.",
"points": [
[
"2026-10-22T20:00:00Z",
2.9
],
[
"2026-10-23T00:00:00Z",
2.976
],
"… 35 more"
]
},
"… 6 more"
]
},
"topAccounts": {
"definition": "Among the venue's top traders by position, accounts long per account short.",
"venues": [
{
"venue": "binance",
"symbol": "SOLUSDC",
"at": "2026-10-28T23:00:00Z",
"latest": 3.563,
"dayBefore": 3.643,
"note": "From the venue's public data archive, published a day after each UTC day; through 2026-10-28.",
"points": [
[
"2026-10-22T20:00:00Z",
3.419
],
[
"2026-10-23T00:00:00Z",
3.277
],
"… 35 more"
]
},
{
"venue": "binance",
"symbol": "SOLUSDT",
"at": "2026-10-28T23:00:00Z",
"latest": 3.477,
"dayBefore": 3.469,
"note": "From the venue's public data archive, published a day after each UTC day; through 2026-10-28.",
"points": [
[
"2026-10-22T20:00:00Z",
3.331
],
[
"2026-10-23T00:00:00Z",
3.289
],
"… 35 more"
]
},
"… 5 more"
]
},
"topPositions": {
"definition": "Among the venue's top traders, long position size per unit of short.",
"venues": [
{
"venue": "binance",
"symbol": "SOLUSDC",
"at": "2026-10-28T23:00:00Z",
"latest": 2.618,
"dayBefore": 2.313,
"note": "From the venue's public data archive, published a day after each UTC day; through 2026-10-28.",
"points": [
[
"2026-10-22T20:00:00Z",
2.303
],
[
"2026-10-23T00:00:00Z",
2.16
],
"… 35 more"
]
},
{
"venue": "binance",
"symbol": "SOLUSDT",
"at": "2026-10-28T23:00:00Z",
"latest": 2.723,
"dayBefore": 2.477,
"note": "From the venue's public data archive, published a day after each UTC day; through 2026-10-28.",
"points": [
[
"2026-10-22T20:00:00Z",
2.271
],
[
"2026-10-23T00:00:00Z",
2.14
],
"… 35 more"
]
},
"… 5 more"
]
},
"openInterest": {
"definition": "Open interest held long per dollar held short.",
"venues": [
{
"venue": "gmx",
"symbol": "arb:SOL/USD [SOL-USDC]",
"at": "2026-10-29T17:00:00Z",
"latest": 1.172,
"dayBefore": 1.068,
"points": [
[
"2026-10-22T20:00:00Z",
1.349
],
[
"2026-10-23T00:00:00Z",
1.414
],
"… 40 more"
]
},
{
"venue": "jupiter",
"symbol": "SOL",
"at": "2026-10-29T21:00:00Z",
"latest": 4.735,
"dayBefore": 4.879,
"points": [
[
"2026-10-22T20:00:00Z",
5.639
],
[
"2026-10-23T00:00:00Z",
5.277
],
"… 41 more"
]
},
"… 3 more"
]
}
},
"largeAccounts": {
"net": {
"whales": [
[
"2026-10-22T20:00:00Z",
-172243000
],
[
"2026-10-23T00:00:00Z",
-169816000
],
"… 41 more"
],
"midsize": [
[
"2026-10-22T20:00:00Z",
29697700
],
[
"2026-10-23T00:00:00Z",
21240100
],
"… 41 more"
]
},
"latest": {
"whales": {
"longUsd": 6821632,
"shortUsd": 139719259,
"longAccounts": 11,
"shortAccounts": 15,
"longUnrealizedPnlUsd": 1864,
"shortUnrealizedPnlUsd": -5587033,
"longLeverage": 13.6,
"shortLeverage": 10.3
},
"midsize": {
"longUsd": 20567435,
"shortUsd": 27416662,
"longAccounts": 17,
"shortAccounts": 39,
"longUnrealizedPnlUsd": -1191850,
"shortUnrealizedPnlUsd": -152446,
"longLeverage": 11.1,
"shortLeverage": 14.7
}
}
},
"orderBook": {
"dydx": {
"at": "2026-10-29T20:00:00Z",
"mid": 98.805,
"within0_5pct": {
"bidUsd": 11267951,
"askUsd": 9299449
},
"within1pct": {
"bidUsd": 55863382,
"askUsd": 40434780
},
"within2pct": {
"bidUsd": 154585946,
"askUsd": 70881858
}
},
"hyperliquid": {
"at": "2026-10-29T19:00:00Z",
"mid": 100.35,
"within0_5pct": {
"bidUsd": 14691902,
"askUsd": 10336621
},
"within1pct": {
"bidUsd": 19718314,
"askUsd": 16652367
}
},
"lighter": {
"at": "2026-10-29T20:00:00Z",
"mid": 98.5895,
"within0_5pct": {
"bidUsd": 6538536,
"askUsd": 6794532
},
"within1pct": {
"bidUsd": 11009957,
"askUsd": 10560975
}
}
},
"orderBookNotRead": [
"aevo",
"apex",
"… 32 more"
],
"archives": [
{
"venue": "binance",
"symbol": "SOLUSDT",
"through": {
"depth": "2026-10-28",
"funding": "2026-09-30",
"bars": "2026-10-27",
"takerFlow": "2026-10-27",
"openInterest": "2026-10-28",
"longShort": "2026-10-28",
"premium": "2026-10-27",
"volume": "2026-10-27"
},
"note": "From Binance's public data archive, which publishes each UTC day the next day and funding once a month: this market's series run through the dates given, and it has no hourly reading. Its latest archived open interest is in a market's open-interest total of now, dated; it is i…",
"openInterestUsd": [
[
"2026-10-22T20:00:00Z",
1064830000
],
[
"2026-10-23T00:00:00Z",
1077740000
],
"… 35 more"
],
"takerFlowUsd": [
{
"at": "2026-10-22T20:00:00Z",
"buy": 27501659,
"sell": 25455720,
"net": 2045939
},
{
"at": "2026-10-23T00:00:00Z",
"buy": 108613588,
"sell": 97155103,
"net": 11458485
},
"… 29 more"
]
},
{
"venue": "bybit",
"symbol": "SOLUSDT",
"through": {
"bars": "2026-10-28",
"takerFlow": "2026-10-28",
"volume": "2026-10-28"
},
"note": "Built from Bybit's public trade files, which publish each UTC day after it ends: this market's series run through the dates given. Bybit publishes no funding, open interest or liquidations there, and the market has no hourly reading, so it is not in totals or current readings.",
"takerFlowUsd": [
{
"at": "2026-10-22T20:00:00Z",
"buy": 5637599,
"sell": 5452489,
"net": 185110
},
{
"at": "2026-10-23T00:00:00Z",
"buy": 29595552,
"sell": 20278110,
"net": 9317443
},
"… 35 more"
]
}
]
}
}Fields are explained in Reading a response.
Errors
isError: true and the reason in words. A company or market the server cannot match comes back as a result naming what was not found. See Errors and limits.
