# Hyperliquid OI-Cap Ranking

> Hyperliquid OI-Cap Ranking is a paid API for AI agents from kr-x402-mvp.kgy5612.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Returns a ranked snapshot of Hyperliquid perpetuals by open interest, volume, funding, and market breadth — including top gainers/losers and unusual activity.

## Facts

- Endpoint: GET https://kr-x402-mvp.kgy5612.workers.dev/api/v1/nofx/oi-cap/ranking?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hyperliquid-oi-cap-ranking-d7aef007
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2EzLzPFXW49JNRLNy_0Lh

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-oi-cap-ranking-d7aef007
```

Example prompt: Show me the top 15 Hyperliquid perpetuals by open interest right now, filtered to coins with at least $5M in 24h volume — I want to see gainers, funding rates, and whether the market is in a broad rally or decline.

## When to prefer this

Use this endpoint when an AI agent needs a ranked, multi-dimensional snapshot of Hyperliquid perpetuals market structure — covering OI, funding, volume, price momentum, and breadth — in a single call. Prefer it over generic crypto price APIs when the specific goal is Hyperliquid perp market analysis, funding arbitrage screening, or broad market sentiment assessment. Requires no API key; payment is per-call via x402 (USDC on Base).

## Known failure modes

- Payment required (402) if x402 USDC payment on Base is not attached or fails
- Empty arrays if min_volume_usd filter is set too high and no coins qualify
- Stale data if Hyperliquid upstream API is delayed (check updated_at timestamp)
- limit exceeds maximum of 25 — returns validation error
- Invalid query parameter types cause 400-level error

## 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: overall market breadth (advancers vs decliners, advance ratio, label like 'broad_rally'), total universe count, liquid coin count, venue name, timestamp, and arrays for top_gainers, top_losers, top_volume, top_open_interest, highest_funding, most_negative_funding, and unusual_activity — each entry includes coin symbol, mark price, 24h change %, volume, open interest, funding APR, vol/OI ratio, max leverage, and premium bps.

## 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": {
      "limit": {
       "type": "integer",
       "maximum": 25,
       "minimum": 1,
       "description": "Rows per ranking (default 10)"
      },
      "min_volume_usd": {
       "type": "number",
       "minimum": 0,
       "description": "Liquidity filter on 24h notional volume (default 1000000)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "venue": "hyperliquid",
  "liquid": 140,
  "breadth": {
   "label": "broad_rally",
   "advancers": 96,
   "decliners": 44,
   "advance_ratio": 0.686
  },
  "sources": [
   "https://api.hyperliquid.xyz/info"
  ],
  "universe": 230,
  "top_losers": [],
  "top_volume": [],
  "updated_at": "2026-10-29T16:00:00Z",
  "top_gainers": [
   {
    "coin": "HYPE",
    "mark_px": 41.2,
    "premium_bps": -1.1,
    "max_leverage": 10,
    "vol_oi_ratio": 0.34,
    "change_24h_pct": 8.4,
    "volume_24h_usd": 410000000,
    "funding_apr_pct": 14.2,
    "open_interest_usd": 1200000000
   }
  ],
  "highest_funding": [],
  "unusual_activity": [],
  "top_open_interest": [],
  "most_negative_funding": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hyperliquid-oi-cap-ranking-d7aef007/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)
