# Hyperliquid Perp Liquidation Levels

> Hyperliquid Perp Liquidation Levels is a paid API for AI agents from 1gateway.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-30).

Returns estimated liquidation prices and distances for long/short positions on a Hyperliquid perpetual contract across specified leverage levels, with market context.

## Facts

- Endpoint: GET https://1gateway.dev/v1/crypto/hyperliquid/liquidations?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hyperliquid-perp-liquidation-levels-c6db6a07
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ft1HaaaKInVtHCX39SM-h

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability hyperliquid-perp-liquidation-levels-c6db6a07
```

Example prompt: What are the liquidation prices for BTC longs and shorts on Hyperliquid at 5x, 10x, and 20x leverage, and is any of them within today's 24-hour price range?

## When to prefer this

Use this endpoint when an AI agent needs to assess leverage risk or size a position on Hyperliquid perpetuals. It is specifically suited for pre-trade risk checks, comparing safe leverage levels, and understanding market crowding and funding context — all in a single call. Prefer this over a generic market data feed when you need liquidation-specific calculations tied to actual Hyperliquid margin rules, including maintenance margin and per-leverage long/short liquidation distances.

## Known failure modes

- 400 error returned before payment if coin symbol is not listed or has been delisted on Hyperliquid
- 400 error if coin symbol does not match the required pattern (e.g. invalid characters)
- 400 error if leverages parameter contains values outside 1-100 range or malformed format
- Stale or delayed mark price if Hyperliquid data feed is lagging
- Results are estimates and may differ from actual liquidation engine behavior during high volatility

## How this service works

Use when an agent sizes leverage on a Hyperliquid perp or checks how close typical positions are to liquidation. Input: coin, optional leverages (e.g. 5,10,20). Output: JSON mark, max leverage, maintenance margin, long/short liquidation price and distance % per leverage, whether the 24 h range exceeds it, 24 h high/low, OI USD, funding APR and crowded side. Estimates, not a live liquidation feed. Example: ?coin=BTC

## Output

A JSON object containing the mark price, maximum leverage, and maintenance margin percentage for the requested coin, along with an array of per-leverage entries each showing long and short liquidation prices, their distance from current mark price as a percentage, and whether that liquidation level falls within the 24-hour high/low range. Also includes market context: 24h high and low prices, open interest in USD, annualized funding rate, and the crowded side (long or short). Estimates only, not a live liquidation feed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "coin"
     ],
     "properties": {
      "coin": {
       "type": "string",
       "pattern": "^([a-z][a-z0-9]{0,9}:)?[A-Za-z0-9]{1,20}$",
       "description": "Hyperliquid perp symbol (BTC, ETH, kPEPE) or HIP-3 dex:COIN (xyz:TSLA). Not listed or delisted: 400…"
      },
      "leverages": {
       "type": "string",
       "pattern": "^[0-9.]+(,[0-9.]+){0,9}$",
       "maxLength": 40,
       "description": "Comma-separated leverages 1-100 (default 2,3,5,10,20,25,40,50 up to the coin's max)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "coin",
      "dex",
      "as_of",
      "markPx",
      "maxLeverage",
      "maintenanceMarginPct",
      "range24h",
      "context",
      "levels",
      "method"
     ],
     "properties": {
      "dex": {
       "type": "string"
      },
      "coin": {
       "type": "string"
      },
      "as_of": {
       "type": "string"
      },
      "levels": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "long": {
          "type": "object",
          "additionalProperties": true
         },
         "short": {
          "type": "object",
          "additionalProperties": true
         },
         "leverage": {
          "type": "integer"
         }
        },
        "additionalProperties": true
       }
      },
      "markPx": {
       "type": "integer"
      },
      "method": {
       "type": "string"
      },
      "context": {
       "type": "object",
       "properties": {
        "crowdedSide": {
         "type": "string"
        },
        "openInterestUsd": {
         "type": "integer"
        },
        "fundingAnnualizedPct": {
         "type": "number"
        }
       },
       "additionalProperties": true
      },
      "range24h": {
       "type": "object",
       "proper
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hyperliquid-perp-liquidation-levels-c6db6a07/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 1gateway.dev](https://www.zero.xyz/host/1gateway.dev/llms.txt)
