Perpetual futures

Whole perps market

Perps market research and sized trade costs. trade/cost: BTC/ETH entry, holding and exit dollars from fresh books. Funding, OI, whales and advanced supplied-data studies.

TOOLget_perps_market
Server
https://mcp.optimistfi.com/mcp
Authentication
None
Access
Read-only: it changes nothing
Example call
curl 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_market","arguments":{"view":"funding_gaps","limit":5}}}'

When a model calls it

Models choose a tool from its description. This is the one the server publishes:

Perps market research and sized trade costs. trade/cost: BTC/ETH entry, holding and exit dollars from fresh books. Funding, OI, whales and advanced supplied-data studies. Use when the user asks: what does my position cost; where can I trade 100x. Not for: one market overview → get_perps. Args: view; workflow; parameters; market; venue.
  • what does my position cost
  • where can I trade 100x

For something else: get_perps.

Parameters

viewstringdefault "trending"

trending
where open interest is building over window (1h, 4h or 24h; dollars added, which move with price as well as positions), and the most active markets
movers
the largest price moves up and down over window (5m, 15m, 1h, 4h or 24h)
funding
the highest and lowest funding now, annualized (the hour's rate times 8,760, a snapshot) and weighted by open interest, with the venues' settled, running and continuous rates counted
funding_gaps
the same market long on one venue and short on another, what each leg pays or earns after funding and borrow at the latest hourly reading (a snapshot funding spread), each leg's interval and whether its rate is settled or a running estimate, and the two legs' mark-price difference (not executable prices)
funding_matrix
every market on every venue, largest open interest first: its funding now (hourly, per 8 hours and annualized), the venue's predicted rate where it publishes one, the funding interval, stablecoin- or coin-margined, and open interest
premium
listings trading furthest above or below the index they settle on (for a stock perp, the stock's price)
open_interest
the largest markets by open interest (one side of the market: how much is open, not which way traders lean), with the change over one, four and 24 hours as the site counts it (a listing in whole) and over the markets read at both ends, in USD and in quantity; with venue, that venue's own markets, largest first, and on a pool venue (GMX, gTrade, Jupiter, Ostium, Variational, Vest, Veranta) each market's longs and shorts in USD
liquidations
per market, the dollars of longs and shorts liquidated over window from complete stored hours (stored_comparable_window), most first, with the venues counted and those left out
whales
single trades of $100K or more and single liquidations of $10K or more over window, largest first, plus the newest trades, each market's net whale buying or selling, totals over time, and big accounts' long and short positioning
new_listings
markets venues listed within window
weekend
while US stocks are shut, every stock perp's move since the close (one stock: get_perps)
lean
where Hyperliquid's accounts worth $1M or more lean on each market, long against short, with each side's leverage and open profit
hl_cohorts
every Hyperliquid account's positioning across its markets, or one market's with `market`: accounts and dollars long and short, the share of open interest held, and cohorts by account equity and by all-time P&L, each with its accounts in profit and in loss
position_changes
the largest changes in Hyperliquid accounts' positions over window (15m, 1h, 4h or 24h), what each did (opened, added, reduced, closed, flipped) and the account's size cohort, never the account
twaps
Hyperliquid TWAP orders running now, their remaining size and the buying and selling they schedule over the next hour and day
leverage
every perp offered at `leverage` or more, the venues and their caps, and the move that liquidates at each
builds
markets where open interest kept building for two to seven days while the price lagged, ranked
venues
every venue on OptimistFi's perps pages, with its network, settlement, funding interval and markets
hlp
HLP, Hyperliquid's liquidation backstop vault: its account value and cumulative P&L now, its return month by month and year by year, annualized, and its max drawdowns
oi_caps
on Hyperliquid and each of its builder dexes, the markets at their open-interest cap and since when, and each market's cap against its open interest now, nearest the cap first
basis
for one coin (market), each dated future's premium to its index on Deribit, OKX, Kraken and Gate, annualized, and the 90-day constant-maturity basis over 30 days
options
for one coin (market), Deribit's options by expiry: ATM implied volatility (the term structure), 25-delta call and put IVs and skew, call and put open interest and their ratio, volume, max pain (the strike where the expiry's options pay their holders least), open interest by strike, and the 30-day ATM IV and skew over 30 days
market_series
open interest and 24-hour volume in total and per venue over window (24h hourly, 7d every 4 hours, 30d, 90d or 1y daily), the share of BTC, ETH and the rest, each point with the venues it covers, the venues first read inside the window, the like-for-like total over the venues read across all of it (sameVenues), and each venue's liquidations over the hours it recorded
funding_heatmap
funding weighted by open interest, annualized, every 4 hours over the last week, for each market holding $10M or more
returns
how many markets moved how far over window (24h or 7d) in 5% buckets, and the largest gainers and losers with their open-interest change
rsi
RSI(14) on completed hourly, 4-hour and daily closes, each with its last close; window picks the one ranked (1h, 4h, or 24h for daily), or market reads one
sessions
for one market over 30 days, the average return by UTC hour and weekday and the cumulative return of the Asia, Europe and US sessions
liquidation_feed
every single liquidation record the venues publish one by one (event_feed: a record, not a trader), newest first, with the dollars liquidated per coin and per exchange over trailing windows of 1, 4, 12 and 24 hours and each venue's readThrough; it covers other venues and hours than the stored-window liquidations, so the totals differ
cvd
one market's cumulative volume delta per venue and across venues, and its netflow (taker buying less selling) over 1h, 4h, 12h, 24h, 3d and 7d; with no market, the markets with the most net buying and selling
footprint
one market's taker buying and selling at each price, hour by hour
liquidation_max_pain
the price band within 2, 5, 10 or 25% of a market's price where the most perp positions are liquidated, from Hyperliquid's mapped positions (not options max pain); with no market, every mapped market ranked
hyperliquid
Hyperliquid beside its markets, by section: its user count and totals, validators and staking, spot markets, deploy auctions, builder dexes (HIP-3), outcome markets (HIP-4), USDC through its Arbitrum bridge, traders seen, the leaderboard's top 100 by P&L (ranked, never named) and fees
market_overview
per market, open interest and its split by venue, open interest per dollar of volume, market cap, 30-day volume with its change, sector tags and the price change over 5 minutes to a day, ranked by open interest and by 30-day volume
exchanges
per venue, open interest and its share of reported OI, 24-hour volume, liquidations, markets and taker and maker fee, each column ranked on its own
sectors
each sector's open interest, volume and 1-, 7- and 30-day return weighted by open interest
indicators
the technical indicator or index named by `indicator` (one market's TD Sequential, ATR, RSI, MA, EMA, MACD or Bollinger Bands at `interval`; RSI, ATR and MACD lists across markets; Bitfinex margin longs and shorts, borrow rates, futures to spot volume, the altcoin season index; or the catalog of every indicator and its status)
btc_cycle
Bitcoin's long-history measures (AHR999, Pi Cycle Top, Golden Ratio Multiplier, 2-Year MA Multiplier, 200-week average, Rainbow, Stock-to-Flow, Puell Multiple, profitable days) and peak signals
fear_greed
our fear and greed index with each of its six inputs
macro
Bitcoin against money supply (M2), its correlations with stocks, gold, the dollar and ether, and the US economic release calendar
etf
every spot ETF on market (BTC, ETH or SOL; a fund ticker such as IBIT for that fund's days, "fund BTC" or "fund ETH" for Grayscale's mini trusts; grayscale for every Grayscale trust), each fund's NAV, shares, net assets, coins held, premium and daily net flow from the issuer's own figures
cot
CFTC Commitments of Traders for market's futures (CME and others), weekly positions by trader group
treasuries
companies holding bitcoin, each count dated and quoted from the SEC filing that states it
orderbook
bids against asks resting within 0.5, 1, 2, 5, 10 and 20% of the mid, per venue and summed across venues, each band's change over 1 hour, 24 hours and 7 days, and the bands over window (for one market), or every market ranked by bid-heavy, ask-heavy, deepest and depth added or pulled in 24 hours
large_orders
every price level resting $100K or more within 10% of the mid, as far as each venue's published book reaches (coverage states the span read), resting now (price, size, side, venue, distance from the mid, size against the market's open interest) and those that ended within window, filled, pulled or unseen, with full counts and totals
orderbook_heatmap
one market's resting dollars by price bucket over window, from its book read every five minutes
week_in_numbers
one week's market-wide figures, frozen once built (period 2026-W42)
venue_scorecard
one month's figures per venue (period 2026-10)

Accepts trending, movers, funding, funding_gaps, funding_matrix, premium, open_interest, liquidations, whales, new_listings, weekend, lean, hl_cohorts, position_changes, twaps, leverage, builds, venues, hlp, oi_caps, basis, options, market_series, funding_heatmap, returns, rsi, sessions, liquidation_feed, cvd, footprint, liquidation_max_pain, hyperliquid, market_overview, exchanges, sectors, indicators, btc_cycle, fear_greed, macro, etf, cot, treasuries, orderbook, large_orders, orderbook_heatmap, week_in_numbers, venue_scorecard.

asset_classstring

Only this kind of market; unset reads every class.

Accepts crypto, equity, index, commodity, fx.

windowstringdefault "24h"

Look-back for liquidations, whales, new_listings, liquidation_feed, footprint (1h, 4h or 24h), cvd (24h hourly, 7d in four-hour steps), trending (positions building over 1h, 4h or 24h), position_changes (15m, 1h, 4h or 24h; 7d reads 24h), returns (24h or 7d) and market_series (24h, 7d, 30d, 90d or 1y; only it reads 30d to 1y); rsi's 1h, 4h or 24h picks the closes ranked. movers covers 5m, 15m, 1h, 4h or 24h; funding, funding_gaps, funding_matrix, premium and open_interest, market_overview, exchanges and sectors read the latest reading. orderbook (one market): its history, 1h and 4h from the five-minute reads, 24h hourly, 7d 4-hourly; large_orders: how far back ended levels are listed; orderbook_heatmap: the span drawn.

Accepts 5m, 15m, 1h, 4h, 24h, 7d, 30d, 90d, 1y.

limitintegerdefault 10

Rows per list, up to 25.

marketstring

One market (BTC, NVDA, gold) for whales, funding_gaps, funding_matrix, premium, new_listings, movers, market_overview, oi_caps, funding_heatmap, rsi, hl_cohorts, position_changes, twaps, liquidation_feed, cvd and liquidation_max_pain; the market sessions and footprint read; for basis and options, the coin they read (BTC, ETH, SOL); one spot token or pair (HYPE, HYPE/USDC) for the hyperliquid view's spot section. For etf and cot the asset (BTC by default), for etf also a fund ticker ("fund BTC" for a ticker that is also an asset's) or grayscale. orderbook, large_orders and orderbook_heatmap read one market. Unset reads every market.

venuestring

One venue id (hyperliquid, dydx, aster, lighter, gmx, …) for whales, new_listings, exchanges, open_interest (that venue's markets, with longs and shorts on a pool venue), large_orders, orderbook_heatmap, liquidation_feed and footprint (that venue's price buckets).

sidestring

whales and liquidation_feed: buys or sells (a short liquidated counts as a buy, a long as a sell).

Accepts buy, sell.

min_usdnumber

whales and liquidation_feed: smallest trade or liquidation in USD; funding_gaps and premium: smallest open interest per listing (default $100K), an open-interest floor; open interest is not order-book depth; large_orders: smallest resting level (default $100K).

At least 0.

leverageinteger

leverage view only: the leverage, one of 5, 10, 20, 50, 100, 200 or 500.

provenbooleandefault false

whales only: true keeps the trades of proven whales, accounts whose large positions kept winning after they were picked.

offsetintegerdefault 0

Rows to skip in each list: with limit, pages through a list's full length (count gives it where a view reports one; funding_matrix pages every row, the other views reach 2,000).

At least 0.

marginstring

funding_matrix only: stablecoin-margined markets (settled in a dollar stablecoin or US dollars), coin-margined (settled in the market's own coin), or either (each position takes a coin or a stablecoin); unset reads every market.

Accepts stablecoin, coin, either.

sectionstring

hyperliquid view only: one section in full; unset gives every section's headline

stats
users, volume, open interest
validators
stake, commission, uptime, the active set, total staked over time
spot
every pair's price, 24h volume and supply (market: one pair's hourly history)
auctions
the three deploy auctions now and every token's deploy gas
hip3
each builder dex's markets, open interest, volume and net deposits
hip4
outcome markets listed and settled, and contracts traded each day
bridge
daily USDC deposits and withdrawals
users
Hyperliquid's user count and traders seen each day
leaderboard
top 100 by all-time and 30-day P&L
fees
the fee schedule and the Assistance Fund

Accepts stats, validators, spot, auctions, hip3, hip4, bridge, users, leaderboard, fees.

indicatorstring

indicators view: which one (td, atr, rsi, ma, ema, macd and boll read one market, named by market; the _list ones every market; coinbase_premium is Coinbase's BTC-USD against OKX's BTC-USDT; bitfinex_margin and borrow_rate take a coin as market; catalog lists every indicator with its status). macro view: m2, correlations or calendar; unset reads all three.

Accepts td, atr, rsi, ma, ema, macd, boll, rsi_list, atr_list, macd_list, coinbase_premium, bitfinex_margin, borrow_rate, futures_spot_volume, altcoin_season, catalog, m2, correlations, calendar.

intervalstring

indicators view: the bar length for a market's indicator or a list (default 1h).

Accepts 15m, 1h, 4h, 12h, 1d, 1w.

periodstring

week_in_numbers: a week, 2026-W42 (Monday 00:00 to Monday 00:00 UTC); venue_scorecard: a month, 2026-10. Unset: the latest closed one; the current one is served marked preview.

workflowstring

Optional workflow inside this existing tool

trade
fresh supported books
carry
explicit economics; analysis=compare ranks equal-delta spot/perp/dated scenarios
funding
stored settlements or analysis=calendar
risk
supplied shocks/collateral, public wallet scenarios, analysis=hedge_size, or analysis=events for sourced-schedule exposure (future events remain estimated)
study
closed trades; analysis=hedge (stored candles), execution (fills/benchmarks), events/conditional (confirmed event evidence with supplied or stored closed prices), or copy_delay (supplied historical visible depth)
screen
source=markets, analysis=divergence/crowding research scans, or analysis=monitor_metrics with exact venue/symbol for hourly funding percentile and fixed-instrument OI quantity change
contracts
stored registry; liveRules=true with one venue adds public size/price/margin rules
replay
stored readings; knownAt selects a prospective immutable platform edition, not original vendor known-at history. Funding confidenceBlockObservations controls descriptive block-bootstrap bands. No account writes or notification sends

Accepts trade, carry, funding, risk, changes, screen, study, alerts, contracts, export, replay.

parametersobject

Validated workflow inputs. trade analysis=cost: market BTC/ETH, sizesUsd (1-6 sizes), side long/short, holdingHours, maxAgeSeconds default 3; live Hyperliquid/Lighter books, optional feeOverridesBps, or up to four normalized supplied quotes. Entry, hold and same-book exit dollar scenarios; missing costs stay null. trade analysis=execution_choices: supplied bids/asks, quantityBase, feeBps and optional explicit passive/sliced fill fractions. screen analysis=liquidity_resilience: eventAt, horizonsSeconds, frozen bandPriceRangeUsd, samples/cadence or prospective venue/market capture. study analyses: markouts (fills and timed benchmarks), price_discovery (synchronized observations and predeclared lags/clocks), relative_value (return_beta with frozen training), capacity (fixed cohort and entry/exit books), options_context (bounded expiry IV summaries). risk analyses: reference_divergence (native-timed mark/oracle/sized exit), leg_risk (separate standard linear margin pools), crowded_exit (one shared book and explicit cohort). carry analysis=capture reconciles supplied settled funding with oracle notionals and an explicit entitlement boundary. Legacy carry/funding/hedge/events/replay inputs remain supported. No MCP writes; private prospective cost studies are saved through the authenticated website. Source clocks, assumptions and economic receipts accompany results.

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:

result.content · parsed
{
  "type": "perps_market",
  "as_of": "2026-10-29T21:00:00Z",
  "confidence": "reported",
  "source": {
    "name": "OptimistFi perps data layer — each venue's public market data, read hourly",
    "url": "https://optimistfi.com/perps/funding",
    "license": "computed"
  },
  "data": {
    "view": "funding_gaps",
    "asOf": "2026-10-29T21:00:00Z",
    "gaps": [
      {
        "base": "H100",
        "assetClass": "commodity",
        "long": {
          "venue": "okx",
          "symbol": "H100-USDT-SWAP",
          "fundingAnnualized": -45.71,
          "openInterestUsd": 106434,
          "fundingRateRaw": -0.005217931764,
          "fundingIntervalHours": 1,
          "fundingState": "current_indicative",
          "fundingRateHourly": -0.005218,
          "fundingObservedAt": "2026-10-29T21:00:00Z",
          "markPrice": 2.9386,
          "indexPrice": 3.082,
          "availability": {
            "executablePrice": "not_recorded"
          },
          "depth": "executable liquidity unavailable: no order-book reading of this market at this hour"
        },
        "short": {
          "venue": "bitget",
          "symbol": "H100USDT",
          "fundingAnnualized": 0.05475,
          "openInterestUsd": 151607,
          "fundingRateRaw": 0.00005,
          "fundingIntervalHours": 8,
          "fundingState": "current_indicative",
          "fundingRateHourly": 0.00000625,
          "fundingObservedAt": "2026-10-29T21:00:00Z",
          "markPrice": 2.748,
          "indexPrice": 2.74734,
          "availability": {
            "executablePrice": "not_recorded"
          },
          "depth": "executable liquidity unavailable: no order-book reading of this market at this hour"
        },
        "gapAnnualized": 45.76,
        "gapHourly": 0.005224,
        "thinnerLegOpenInterestUsd": 106434,
        "venues": 6,
        "priceGapBps": 958,
        "displayedMarkBasisBps": -649,
        "executableBasisAvailable": false,
        "executableBasisReasons": [
          "best_bid_ask_not_stored",
          "order_book_not_read:okx",
          "… 1 more"
        ]
      },
      {
        "base": "ANSEM",
        "assetClass": "crypto",
        "long": {
          "venue": "paragon",
          "symbol": "para:ANSEM",
          "fundingAnnualized": -8.51,
          "openInterestUsd": 135232,
          "fundingRateRaw": -0.0009715002,
          "fundingIntervalHours": 1,
          "fundingState": "current_indicative",
          "fundingRateHourly": -0.0009715,
          "fundingObservedAt": "2026-10-29T21:00:00Z",
          "markPrice": 0.0526,
          "indexPrice": 0.052923,
          "availability": {
            "executablePrice": "not_recorded"
          },
          "depth": {
            "at": "2026-10-29T19:00:00Z",
            "askUsdWithin": {
              "1": 0,
              "2": 3822,
              "0_5": 0
            }
          }
        },
        "short": {
          "venue": "mexc",
          "symbol": "ANSEM_USDT",
          "fundingAnnualized": 0.1007,
          "openInterestUsd": 262414,
          "fundingRateRaw": 0.000046,
          "fundingIntervalHours": 4,
          "fundingState": "current_indicative",
          "fundingRateHourly": 0.0000115,
          "fundingObservedAt": "2026-10-29T21:00:00Z",
          "markPrice": 0.053,
          "indexPrice": 0.053,
          "availability": {
            "executablePrice": "not_recorded"
          },
          "depth": "executable liquidity unavailable: no order-book reading of this market at this hour"
        },
        "gapAnnualized": 8.611,
        "gapHourly": 0.000983,
        "thinnerLegOpenInterestUsd": 135232,
        "venues": 7,
        "priceGapBps": 151,
        "displayedMarkBasisBps": 76,
        "executableBasisAvailable": false,
        "executableBasisReasons": [
          "best_bid_ask_not_stored",
          "order_book_not_read:mexc"
        ]
      },
      "… 3 more"
    ],
    "interpretation": {
      "gapAnnualized": "Snapshot funding spread: this hour's posted funding and borrow, times 8,760; not a forecast and not a guaranteed return, and each rate resets at its venue's settlement.",
      "displayedMarkBasisBps": "The two legs' mark prices read in the same hour, short leg over long leg; marks are not executable prices.",
      "priceGapBps": "The spread of mark prices across every venue listing the market, not the two legs.",
      "thinnerLegOpenInterestUsd": "Open interest, positions outstanding, not order-book depth; the size floor filters on it.",
      "costsOutside": "Outside these figures: trading fees, slippage, funding resets at each settlement, margin held separately on two venues, liquidation of one leg, venue risk, differing contract size and index, and trading hours for stock and commodity perps.",
      "fundingState": "Which reading each leg's rate is: settled, a running estimate for the settlement in progress (current indicative), accruing continuously, borrow only (not applicable) or not stated by the venue. legsComparable is present where the two legs' rates are different readings.",
      "fundingRateHourly": "Each leg's own side's funding rate per hour before borrow, signed as the venues post it (positive: longs pay shorts); where a venue posts each side a rate of its own, the short leg's is the short side's, what a short receives. fundingRateRaw is it times fundingIntervalHours.",
      "fundingAnnualized": "The long leg's rate plus borrowRateHourly, what it pays, and the short leg's rate less borrowRateHourly, what it earns, each times 8,760; borrowRateHourly is present where the venue charges borrow.",
      "fundingObservedAt": "The hourly reading each leg's rates come from; every leg is read in the same hour. A settled rate is the venue's last settlement at or before it.",
      "executableBasisAvailable": "False on every row: no synchronized best bid and ask is stored, so no executable price gap is stated; executableBasisReasons names why, and each leg whose book is not read.",
      "availability": "Each leg's prices kept apart: markPrice is the venue's mark, which the displayed gaps use; indexPrice the index it settles funding on, not published where the venue has none apart from its mark. executablePrice is not recorded on any leg: no best bid or ask is stored.",
      "depth": "Each leg's resting order-book dollars within 0.5, 1 and 2% of the mid at the hour given (the long leg's asks, the short leg's bids) where its book is read here; a leg with no such reading says its executable liquidity is unavailable. A fill's cost at a given size is not stated.",
      "bandsNotStated": "A leg's depth bands its book reading does not cover: the book as read stops short of that distance from the mid, or is grouped too coarsely to state it. Unknown, not zero, and absent from askUsdWithin or bidUsdWithin."
    }
  }
}

Fields are explained in Reading a response.

Errors

A call the server cannot run (a missing or invalid argument) comes back with 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.
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.