# Hyperliquid Liquidations & Positioning Signal

> Hyperliquid Liquidations & Positioning Signal is a paid API for AI agents from kr-x402-mvp.kgy5612.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-02).

Returns real-time liquidation data, open interest, taker flow, long/short ratio, and a crowding-based trading signal for a given perpetuals coin on Hyperliquid/OKX

## Facts

- Endpoint: GET https://kr-x402-mvp.kgy5612.workers.dev/api/hyperliquid/liquidations?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hyperliquid-liquidations-positioning-signal-e76a40fa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MceBd7-ulNBDwpx6FTuUG

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-liquidations-positioning-signal-e76a40fa
```

Example prompt: What do the latest BTC perp liquidations look like — are longs getting squeezed, and is the crowding signal telling me to fade or follow the current positioning?

## When to prefer this

Use this endpoint when an AI trading agent needs a real-time, multi-signal liquidation and positioning summary for a specific crypto perpetual — combining liquidation USD flows, open interest trend, taker flow, funding rates, and a crowding verdict in a single pay-per-call call with no API key required. Prefer this over raw exchange APIs when you need a pre-synthesized actionable signal rather than raw tick data, and when operating in an autonomous agent context that supports x402 micropayments on Base.

## Known failure modes

- Unknown or unsupported coin symbol returns an error or empty data
- Stale data if upstream OKX/Hyperliquid APIs are unavailable — check updated_at timestamp
- Payment failure (x402): insufficient USDC balance on Base causes 402 response with no data
- Missing coin query param defaults to BTC — agent may get wrong coin data if param not set
- Rate limits or upstream timeouts may return 503 or partial data

## How this service works

Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.

## Output

A JSON object containing: per-coin liquidation counts and USD breakdowns for 1h, 4h, and 24h windows with dominant side (longs vs shorts); open interest in USD across OKX and Hyperliquid with 1h/4h/24h change percentages; taker buy/sell ratio and flow in USD; long/short ratio with 48h min/max percentile; funding rates on OKX (8h % and APR) and Hyperliquid (APR); a crowding_score integer; a BALANCED/LONG_CROWDED/SHORT_CROWDED verdict; a plain-English action recommendation; reasons array; and next-step endpoint suggestions.

## 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",
     "properties": {
      "coin": {
       "type": "string",
       "examples": [
        "BTC",
        "ETH",
        "SOL"
       ],
       "maxLength": 12,
       "description": "Perp coin, e.g. BTC, ETH, SOL, DOGE (alias symbol=; default BTC)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "coin": "BTC",
  "next": [
   "/crypto/funding-signal?coin=BTC",
   "/crypto/candles?symbol=BTC&interval=1h",
   "/crypto/hl-book?coin=BTC"
  ],
  "action": "No crowding extreme; positioning is not a reason to fade or follow.",
  "funding": {
   "okx_8h_pct": 0.0053,
   "okx_apr_pct": 5.76,
   "hyperliquid_apr_pct": 10.95
  },
  "reasons": [
   "OI -3.9% in 4h: deleveraging",
   "4h liquidations: longs $2900k vs shorts $310k (longs_liquidated)",
   "4h taker buy/sell 0.87"
  ],
  "verdict": "BALANCED",
  "taker_flow": {
   "1h": {
    "buy_usd": 213069948,
    "sell_usd": 267061837,
    "buy_sell_ratio": 0.798
   }
  },
  "updated_at": "2026-10-30T08:40:00Z",
  "liquidations": {
   "1h": {
    "count": 38,
    "dominant": "longs_liquidated",
    "long_liq_usd": 1250000,
    "short_liq_usd": 40000
   },
   "4h": {
    "count": 90,
    "dominant": "longs_liquidated",
    "long_liq_usd": 2900000,
    "short_liq_usd": 310000
   },
   "24h": {
    "count": 100,
    "dominant": "longs_liquidated",
    "long_liq_usd": 2900000,
    "short_liq_usd": 310000
   },
   "venue": "okx",
   "sample_covers_minutes": 230
  },
  "open_interest": {
   "okx_usd": 2579936287,
   "total_usd": 4979936287,
   "change_1h_pct": -2.11,
   "change_4h_pct": -3.9,
   "change_24h_pct": 1.2,
   "hyperliquid_usd": 2400000000
  },
  "crowding_score": 0,
  "long_short_ratio": {
   "max_48h": 2.72,
   "min_48h": 1.69,
   "long_pct": 69.1,
   "change_24h": 0.49,
   "okx_accounts": 2.24,
   "ratio_24h_ago": 1.75,
   "percentile_48h": 53
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hyperliquid-liquidations-positioning-signal-e76a40fa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kr-x402-mvp.kgy5612.workers.dev](https://www.zero.xyz/host/kr-x402-mvp.kgy5612.workers.dev/llms.txt)
