# Hyperliquid Top Position Snapshot (x402)

> Hyperliquid Top Position Snapshot (x402) 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 market-breadth snapshot from Hyperliquid: top gainers/losers, highest/most-negative funding, top open interest and volume, advance/decline ratio, and unusual activity — filtered by liquidity and row count.

## Facts

- Endpoint: GET https://kr-x402-mvp.kgy5612.workers.dev/api/v1/coinank/hyper/top-position?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-top-position-snapshot-x402-69c2120d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_InAdzVq1hyP7C0te1MwsZ

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-top-position-snapshot-x402-69c2120d
```

Example prompt: Give me a Hyperliquid market snapshot — show the top 15 coins filtered to at least $5M in 24h volume, including top gainers, highest funding rates, and the overall advance/decline breadth.

## When to prefer this

Choose this endpoint when an AI agent needs a structured, ranked Hyperliquid-specific market overview — covering breadth, momentum, funding, and open interest in one call — rather than querying a single coin's data or a multi-venue aggregator. It is especially useful for screening or pre-trade routines where the agent needs to identify which perps are moving and why, without holding any API keys (payment is handled via x402/USDC on Base).

## Known failure modes

- Invalid limit value (outside 1–25) returns a 400 validation error
- min_volume_usd below 0 returns a 400 validation error
- Payment not included or insufficient USDC triggers a 402 Payment Required response
- Hyperliquid upstream API outage may cause stale or missing data
- Workers deployment downtime returns 5xx

## 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: venue name, total universe count, liquid coin count, breadth stats (advancers, decliners, advance_ratio, label), ranked lists for top gainers/losers/volume/open interest/highest funding/most negative funding/unusual activity, each entry with mark price, 24h change %, funding APR %, open interest USD, 24h volume USD, vol/OI ratio, premium bps, max leverage, and a data freshness timestamp.

## 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-top-position-snapshot-x402-69c2120d/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)
