Skip to main content
Glama

Hyperliquid Liquidations

hl_liquidations
Read-onlyIdempotent

Hyperliquid liquidations, by view. fills: liquidation events, newest first, filtered by symbol, wallet, side and time. Since 2026-08-03 rows are EXACT, the liquidated wallet's own fill from the node (liq_ts the fill's millisecond, sizes what it closed, mark_price the venue's mark); older rows are INFERRED from ~5-minute position snapshots (a position over $100 whose mark was within 5% of its liquidation price and which is gone from the next snapshot; liq_ts is that snapshot's time and size/mark are the last values seen; a hand close that near liquidation counts, partial liquidations are missed); direction is the side of the position that was CLOSED (long = longs liquidated, price fell) and each row's pnl_cohort carries a pnl_cohort_basis saying how it was labelled. risk: per symbol, the share of open notional close to liquidation: percent_risk is a FRACTION from 0 to 1 despite its name, ranked by that fraction, so thin micro-cap markets can top it (read total_value_usd, or pass min_value_usd). heatmap: one symbol, where its open positions' own liquidation prices cluster, in equal-width price bins weighted by notional USD; positions outside +-50% of mark or without a liquidation price are left out and counted under coverage; its liquidations_by_move adds up the same positions by price move: the notional of longs liquidated by a fall and of shorts by a rise of 0.5% to 10% (cumulative, move a fraction), and the smallest move that liquidates $10M and $50M each way. cross_margin: for a BTC move of -40% to +20% in 1% steps, the cross accounts it liquidates (each account one margin pool, other prices held still) and what else they close: BTC long/short USD, every other coin per coin, the median leverage and the largest accounts; hourly, at for a past hour (Free accounts: the last 30 days), move for one step (the 61 at once are large). Same data as GET /v1/hyperliquid/{liquidations, liquidations/risk, symbols/{symbol}/liquidation-heatmap, liquidations/cross-margin}.

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": "hl_liquidations"
  }
}

Input Schema

NameRequiredDescriptionDefault
atNo`cross_margin` only: ISO-8601 UTC instant, e.g. 2026-11-20T14:00:00Z; the newest hour at or before it. Default: the newest hour. Free accounts get the last 30 days; older hours need a paid plan. Used by view: heatmap, cross_margin.
endNoISO-8601 UTC upper bound, e.g. 2026-10-02T00:00:00Z. On `heatmap` exclusive, default now; at most 500 steps of `interval` a call. Used by view: fills, heatmap.
axisNoCohort ladder: `size` = account-value tiers in USD, `pnl` = percentile rank of cumulative realized PnL (NOT dollars), `pnl_abs` = dollar bands of that same PnL. Used by view: risk.size
binsNo`heatmap` now (no history parameter): number of equal-width price bins, minimum 5. The window is fixed at +-50% around the mark price. Max 500. Used by view: heatmap.
moveNo`cross_margin` only: one BTC move in whole percent, -40 to 20 (e.g. -10). Default: all 61 steps. Used by view: cross_margin.
viewNoWhat to read. `fills`: liquidation events, newest first: exact from the node's fills since 2026-08-03, inferred from position snapshots before. `risk`: per symbol, the share of open notional close to liquidation. `heatmap`: where one symbol's open positions would liquidate, binned by price: now, or over time with start/end or at (interval 5m/15m for the last 30 days, 1h/4h from 2026-01-01; cohort and leverage_band filters). `cross_margin`: what a BTC move of -40% to +20% liquidates through shared cross margin, BTC and every other coin those accounts hold. Default `fills`.fills
limitNoRows per page, newest first. Max by view: fills 5000, risk 500. Used by view: fills, risk.
startNoISO-8601 UTC lower bound, e.g. 2026-10-01T00:00:00Z. On `heatmap` it switches to the map over time (default: the last 100 steps). On the Free plan that history covers the last 30 days. Used by view: fills, heatmap.
cohortNoOne label on `axis`, spelled exactly as `hl_segments` view=cohorts lists it, e.g. `whale` (size) or `3x smart` (pnl). Omit for all wallets. On `heatmap` (history) it is who holds the level instead: `all`, `whales`, `smart`, `others` or `hlp` (Hyperliquid's own vault and its child vaults). Used by view: risk, heatmap.
cursorNo`nextCursor` from the previous page, passed back verbatim; it is null on the last page. Omit it for the first page. Used by view: fills.
symbolNoHyperliquid instrument ticker, e.g. BTC, ETH, HYPE; a HIP-3 market is `dex:TICKER`, e.g. xyz:TSLA. Used by view: fills, heatmap. Required by view: heatmap.
walletNoOne wallet, to ask whether it has been liquidated. Used by view: fills.
min_usdNo`fills` only: smallest `size_usd` in USD. Default 0: no floor. Used by view: fills.
intervalNo`heatmap` history only: the step, `5m` or `15m` (the last 30 days) or `1h` (default) or `4h` (from 2026-01-01). A step is the open levels at one snapshot, not a sum over the step. Used by view: heatmap.
step_pctNo`heatmap` history only: the price bin width in percent, `0.1`, `0.2`, `0.5` (default) or `1.0`. Used by view: heatmap.
directionNoThe side of the position that was CLOSED: `long` = longs liquidated (price fell), `short` = shorts liquidated. Used by view: fills.
leverage_bandNo`heatmap` history only: only positions of that leverage; a cross position at the venue's default counts as size / margin. Used by view: heatmap.
min_value_usdNo`risk` only: smallest total open notional in USD a symbol needs to be ranked. Default 0 (no floor), so thin micro-cap markets can lead; raise it to keep only markets big enough for a cascade to matter. Used by view: risk.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • addedInput schema / properties / at
      Added value: +{
      +  "description": "`cross_margin` only: ISO-8601 UTC instant, e.g. 2026-11-20T14:00:00Z; the newest hour at or before it. Default: the newest hour. Free accounts get the last 30 days; older hours need a paid plan. Used by view: heatmap, cross_margin.",
      +  "type": "string"
      +}
    • changedInput schema / properties / bins / description
      Previous value: -"Number of equal-width price bins, minimum 5. The window is fixed at +-50% around the mark price. Max 500. Used by view: heatmap."New value: +"`heatmap` now (no history parameter): number of equal-width price bins, minimum 5. The window is fixed at +-50% around the mark price. Max 500. Used by view: heatmap."
    • changedInput schema / properties / cohort / description
      Previous value: -"One label on `axis`, spelled exactly as `hl_segments` view=cohorts lists it, e.g. `whale` (size) or `3x smart` (pnl). Omit for all wallets. Used by view: risk."New value: +"One label on `axis`, spelled exactly as `hl_segments` view=cohorts lists it, e.g. `whale` (size) or `3x smart` (pnl). Omit for all wallets. On `heatmap` (history) it is who holds the level instead: `all`, `whales`, `smart`, `others` or `hlp` (Hyperliquid's own vault and its child vaults). Used by view: risk, heatmap."
    • changedInput schema / properties / end / description
      Previous value: -"ISO-8601 UTC upper bound, e.g. 2026-10-02T00:00:00Z. Used by view: fills."New value: +"ISO-8601 UTC upper bound, e.g. 2026-10-02T00:00:00Z. On `heatmap` exclusive, default now; at most 500 steps of `interval` a call. Used by view: fills, heatmap."
    • addedInput schema / properties / interval
      Added value: +{
      +  "description": "`heatmap` history only: the step, `5m` or `15m` (the last 30 days) or `1h` (default) or `4h` (from 2026-01-01). A step is the open levels at one snapshot, not a sum over the step. Used by view: heatmap.",
      +  "enum": [
      +    "5m",
      +    "15m",
      +    "1h",
      +    "4h"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / leverage_band
      Added value: +{
      +  "description": "`heatmap` history only: only positions of that leverage; a cross position at the venue's default counts as size / margin. Used by view: heatmap.",
      +  "enum": [
      +    "all",
      +    "up_to_5x",
      +    "5_to_10x",
      +    "10_to_20x",
      +    "over_20x"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / move
      Added value: +{
      +  "description": "`cross_margin` only: one BTC move in whole percent, -40 to 20 (e.g. -10). Default: all 61 steps. Used by view: cross_margin.",
      +  "type": [
      +    "integer",
      +    "string"
      +  ]
      +}
    • changedInput schema / properties / start / description
      Previous value: -"ISO-8601 UTC lower bound, e.g. 2026-10-01T00:00:00Z. Used by view: fills."New value: +"ISO-8601 UTC lower bound, e.g. 2026-10-01T00:00:00Z. On `heatmap` it switches to the map over time (default: the last 100 steps). On the Free plan that history covers the last 30 days. Used by view: fills, heatmap."
    • addedInput schema / properties / step_pct
      Added value: +{
      +  "description": "`heatmap` history only: the price bin width in percent, `0.1`, `0.2`, `0.5` (default) or `1.0`. Used by view: heatmap.",
      +  "type": [
      +    "number",
      +    "string"
      +  ]
      +}
    • changedInput schema / properties / view / description
      Previous value: -"What to read. `fills`: liquidation events, newest first: exact from the node's fills since 2026-08-03, inferred from position snapshots before. `risk`: per symbol, the share of open notional close to liquidation. `heatmap`: where one symbol's open positions would liquidate, binned by price. Default `fills`."New value: +"What to read. `fills`: liquidation events, newest first: exact from the node's fills since 2026-08-03, inferred from position snapshots before. `risk`: per symbol, the share of open notional close to liquidation. `heatmap`: where one symbol's open positions would liquidate, binned by price: now, or over time with start/end or at (interval 5m/15m for the last 30 days, 1h/4h from 2026-01-01; cohort and leverage_band filters). `cross_margin`: what a BTC move of -40% to +20% liquidates through shared cross margin, BTC and every other coin those accounts hold. Default `fills`."
    • changedInput schema / properties / view / enum
      Previous value: -[
      -  "fills",
      -  "risk",
      -  "heatmap"
      -]New value: +[
      +  "fills",
      +  "risk",
      +  "heatmap",
      +  "cross_margin"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / min_usd
      Added value: +{
      +  "default": 0,
      +  "description": "`fills` only: smallest `size_usd` in USD. Default 0: no floor. Used by view: fills.",
      +  "type": [
      +    "number",
      +    "string"
      +  ]
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / view / description
      Previous value: -"What to read. `fills`: liquidation events inferred from position snapshots, newest first. `risk`: per symbol, the share of open notional close to liquidation. `heatmap`: where one symbol's open positions would liquidate, binned by price. Default `fills`."New value: +"What to read. `fills`: liquidation events, newest first: exact from the node's fills since 2026-08-03, inferred from position snapshots before. `risk`: per symbol, the share of open notional close to liquidation. `heatmap`: where one symbol's open positions would liquidate, binned by price. Default `fills`."
  4. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), yet the description adds substantial behavior the annotations cannot: the EXACT-vs-INFERRED provenance split with its date boundary (2026-08-03), the inference heuristic and its known failure modes ('a hand close that near liquidation counts, partial liquidations are missed'), the semantics of `direction`, and plan gating for hourly cross-margin data. It also discloses heatmap coverage exclusions (outside +-50% of mark, no liquidation price) and the held-still-prices assumption behind cross_margin.

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 content is front-loaded by view and almost every clause carries load-bearing information, but it is delivered as one long run-on block with nested parentheses and no structuring beyond backticks, making the cross_margin and heatmap sections hard to scan. Density is buying completeness at the cost of readability, and some caveats (e.g. the `pnl_cohort_basis` note) are buried mid-sentence.

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 18 parameters, four view modes and no output schema, the description carries the full burden and discharges it: it explains what key returned fields mean (`liq_ts`, `mark_price`, `pnl_cohort`, `coverage`, `liquidations_by_move`, the $10M/$50M thresholds), documents the history windows and intervals, and covers data-quality caveats. An agent has enough to pick a view, set parameters, and interpret results correctly.

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 100%, so the baseline is 3, and the description genuinely exceeds it in places: it flags that `percent_risk` is a fraction 0-1 despite its name, that ranking by that fraction lets thin micro-cap markets lead, and it clarifies that `direction` is the side of the closed position and that `at`/`move` are cross_margin-only. These are interpretation cues not fully derivable from the schema, though much of the per-parameter text restates what the schema already documents.

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 description names the specific resource (Hyperliquid liquidations) and states a clear dispatch verb ('by `view`'), then defines each of the four views by what it returns: `fills` = liquidation events, `risk` = share of open notional near liquidation, `heatmap` = binned liquidation price clusters for one symbol, `cross_margin` = what a BTC move liquidates. This distinguishes the modes and maps them to concrete endpoints, so an agent can tell what it is calling 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?

Each view carries implicit usage context (e.g. `fills` for liquidation events filtered by symbol/wallet/side/time, `risk` for ranking symbols, `cross_margin` for cascade stress tests), and the description warns that the 61-step cross_margin call is 'large' and that Free accounts are limited to 30 days. It does not, however, explicitly say when to prefer this over siblings such as perp_liquidations or hl_ohlcv, nor state exclusions, so it falls short of a full when/when-not treatment.

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.