Skip to main content
Glama

Perp Open Interest

perp_open_interest
Read-onlyIdempotent

Open interest of one perpetual-futures symbol on each venue Vike polls: aster, binance, bitget, bybit, deribit, hyperliquid, kraken, kucoin, okx. oi_usd is USD NOTIONAL (open contracts x mark price when polled), not contracts or coins, and ONE side on every venue (each open contract counted once): Hyperliquid's own figure counts longs plus shorts, so it is halved here (since 2026-12-02 17:21 UTC; before that this tool served Hyperliquid's own figure, twice this). Without hours, start or end: the newest print per venue and its age in seconds; venues printed within the last hour, stale_venues went silent (last print within 30 days) and must NOT be summed in. With hours (1-8760, the hours before now) or start / end (a window; not with hours): a series per venue of [ts, oi_usd] pairs, the last print in each interval bucket (1h by default, 4h or 1d; 4h and 1d start at 00:00 UTC; ts the bucket's start), or with interval 'raw' every stored print at its own ts (when we read the venue: to the second on binance and aster, the minute of the read on the others; every 5 to 8 minutes; at most 7 days a call, page with start / end). History is kept with no time limit (binance, bybit, okx and kucoin from 2026-04-10, aster from 2026-05-05, bitget and hyperliquid from 2026-05-13, deribit and kraken from 2026-07-21 12:36 (deribit's BTC and ETH from 2026-11-30 19:55); coinbase's rows end 2026-10-01 (Coinbase International halted its perpetuals), kept as history); at most 10,000 buckets a call, and a longer window is refused, never cut short. Venues are polled roughly every 5-8 minutes. symbol is the canonical base asset ('BTC', not 'BTCUSDT'). A symbol no venue lists returns empty lists and a note, never zeros. With view 'movers' (no symbol): the coins whose open interest rose (rising) and fell (falling) most over window (1h, 4h or 24h; default 4h) among those with at least min_oi_usd (default 10,000,000) of it, limit each (default 10): symbol, oi_usd (summed over the venues), chg_1h_pct / chg_4h_pct / chg_24h_pct (percent, over the venues that printed at both times: the newest print of the last hour against the newest of the hour that ended 1, 4 or 24 hours before), vol_24h_usd (24-hour volume of those venues) and venues; as_of is the newest print the hours count back from, coins how many coins are that large. Same answer as GET /v1/marketdata/perp/oi/movers.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "perp_open_interest"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoA series up to this time, exclusive: ISO 8601 or unix seconds. Default: now.
viewNovenues (default): one symbol per venue, now or as a series. movers: the coins whose open interest moved most, every coin at once.
hoursNoA series over this many hours before now, 1 to 8760 (a year; 1 to 168 with interval raw). Not with start/end. Omit hours, start and end for the latest print per venue.
limitNoview movers: coins in `rising` and in `falling`, 1 to 100. Default 10.
startNoA series from this time, inclusive: ISO 8601 ('2026-11-01', '2026-11-01T12:00:00Z') or unix seconds, floored to the interval. Default: 7 days before end.
symbolNoBase asset, e.g. 'BTC', 'ETH', 'SOL' (not 'BTCUSDT'). Required, except with view 'movers'.
windowNoview movers: rank by the change over this window. Default 4h.
exchangeNoOnly this venue (lower case), e.g. 'binance'. Omit for every venue.
intervalNoThe bucket of a series: 1h (default), 4h or 1d; 4h and 1d start at 00:00 UTC. raw: every stored print at its own time, at most 7 days a call. Only with hours, start or end.
min_oi_usdNoview movers: only coins with at least this much open interest, USD. Default 10000000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / hours / description
      Previous value: -"A series over this many hours before now, 1 to 8760 (a year). Not with start/end. Omit hours, start and end for the latest print per venue."New value: +"A series over this many hours before now, 1 to 8760 (a year; 1 to 168 with interval raw). Not with start/end. Omit hours, start and end for the latest print per venue."
    • changedInput schema / properties / interval / description
      Previous value: -"The bucket of a series: 1h (default), 4h or 1d; 4h and 1d start at 00:00 UTC. Only with hours, start or end."New value: +"The bucket of a series: 1h (default), 4h or 1d; 4h and 1d start at 00:00 UTC. raw: every stored print at its own time, at most 7 days a call. Only with hours, start or end."
    • changedInput schema / properties / interval / enum
      Previous value: -[
      -  "1h",
      -  "4h",
      -  "1d"
      -]New value: +[
      +  "1h",
      +  "4h",
      +  "1d",
      +  "raw"
      +]
  2. Changed6 schema fields changed
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "view movers: coins in `rising` and in `falling`, 1 to 100. Default 10.",
      +  "type": [
      +    "integer",
      +    "string"
      +  ]
      +}
    • addedInput schema / properties / min_oi_usd
      Added value: +{
      +  "description": "view movers: only coins with at least this much open interest, USD. Default 10000000.",
      +  "type": [
      +    "number",
      +    "string"
      +  ]
      +}
    • changedInput schema / properties / symbol / description
      Previous value: -"Required. Base asset, e.g. 'BTC', 'ETH', 'SOL' (not 'BTCUSDT')."New value: +"Base asset, e.g. 'BTC', 'ETH', 'SOL' (not 'BTCUSDT'). Required, except with view 'movers'."
    • addedInput schema / properties / view
      Added value: +{
      +  "description": "venues (default): one symbol per venue, now or as a series. movers: the coins whose open interest moved most, every coin at once.",
      +  "enum": [
      +    "venues",
      +    "movers"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / window
      Added value: +{
      +  "description": "view movers: rank by the change over this window. Default 4h.",
      +  "enum": [
      +    "1h",
      +    "4h",
      +    "24h"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "symbol"
      -]New value: +[]
  3. Changed4 schema fields changed
    • addedInput schema / properties / end
      Added value: +{
      +  "description": "A series up to this time, exclusive: ISO 8601 or unix seconds. Default: now.",
      +  "type": "string"
      +}
    • changedInput schema / properties / hours / description
      Previous value: -"Omit for the latest print per venue. 1 to 168 for an hourly series over that many hours."New value: +"A series over this many hours before now, 1 to 8760 (a year). Not with start/end. Omit hours, start and end for the latest print per venue."
    • addedInput schema / properties / interval
      Added value: +{
      +  "description": "The bucket of a series: 1h (default), 4h or 1d; 4h and 1d start at 00:00 UTC. Only with hours, start or end.",
      +  "enum": [
      +    "1h",
      +    "4h",
      +    "1d"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / start
      Added value: +{
      +  "description": "A series from this time, inclusive: ISO 8601 ('2026-11-01', '2026-11-01T12:00:00Z') or unix seconds, floored to the interval. Default: 7 days before end.",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnly/idempotent annotations the description discloses what the number really means: USD notional at mark price, one side per contract, and that Hyperliquid's longs-plus-shorts figure is halved from 2026-12-02 17:21 UTC. It also warns that stale_venues must not be summed, that a 10,000-bucket window is refused rather than truncated, that an unlisted symbol returns empty lists plus a note instead of zeros, and gives per-venue history start dates and 5-8 minute polling cadence.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The critical definition and unit caveat are front-loaded, but the whole thing is a single dense paragraph of roughly 350 words with nested parentheses and semicolon chains. Nearly every sentence carries information, yet the lack of any line breaks or grouping by mode makes it hard to scan and invites misreading of the mutual-exclusion rules.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 10 optional parameters and no output schema, the description carries the full burden and does: it describes the venues payload (newest print plus age, venues vs stale_venues), the series payload ([ts, oi_usd] bucket pairs), and every movers field including as_of and coins. Coverage depth to a rollover date and to per-venue history start dates is unusually thorough for a tool of this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, but the description adds interpretive detail the schema does not: `ts` is the bucket's start, 4h/1d buckets align to 00:00 UTC, and 'raw' timestamps are the read time (to the second on binance and aster, minute-resolution elsewhere). It also clarifies that `symbol` is the canonical base asset and what `min_oi_usd` filters against.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific resource (open interest of one perpetual-futures symbol), the exact venue scope, and the units of the reported figure. It also declares the second mode ('view' 'movers') up front, so an agent knows both shapes the tool can produce without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Mode selection is spelled out precisely: omit hours/start/end for the newest print per venue, supply hours or start/end for a series, use view 'movers' with no symbol. Mutually exclusive combinations are called out ('not with hours', 'Required, except with view movers'). It never routes to a sibling tool such as perp_funding or hl_perp_top_traders, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.