# Hyperliquid On-Chain Markets Data

> Hyperliquid On-Chain Markets Data is a paid API for AI agents from hyperliquid-data.v1337.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns on-chain market data for Hyperliquid perpetuals, including fills, position lifecycles, leaderboards, liquidation risk, and HIP-4 prediction market data derived from first-party node fills ledger.

## Facts

- Endpoint: POST https://hyperliquid-data.v1337.org/v1/markets/onchain
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hyperliquid-on-chain-markets-data-bed59e13
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mfIkz7uuJ2fXCrgEYGR1X

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-on-chain-markets-data-bed59e13 -d '<json body>'
```

Example prompt: Pull the latest on-chain market data from Hyperliquid for BTC perps, including recent fills and any active liquidation risk — I want to understand what's happening on-chain right now.

## When to prefer this

Choose this endpoint when you need first-party, operator-neutral Hyperliquid on-chain trading data without requiring an account or API key — particularly for perp fills, position lifecycle analysis, liquidation risk, leaderboard data, or HIP-4 prediction markets. It is ideal for agents that need trustworthy data sourced directly from Hyperliquid's own node fills ledger rather than aggregated third-party feeds. Pay-per-call via x402 on Base makes it suitable for low-frequency or exploratory queries without subscription commitment.

## Known failure modes

- Invalid or missing body payload returns 400 Bad Request
- Insufficient x402 payment or wrong chain (must be Base USDC) returns 402 Payment Required
- Unsupported market type or asset filter returns 404 or empty result set
- Rate limiting or node data lag may cause stale or delayed responses
- Malformed JSON body returns parsing error

## How this service works

First-party Hyperliquid trading intelligence: perp fills, position lifecycles, all-wallet leaderboards, trader cohorts, liquidation risk and HIP-4 prediction markets - computed from our own node_fills ledger plus the Hyperliquid public info API (no third-party data source). Free discovery (/healthz, /v1/stats, /.well-known/x402, /v1/openapi.json) and free sample routes (/v1/markets/overview, /v1/assets); all other API calls are $0.001 USDC per request via x402 on Base (no account, no API key).

## Output

Returns structured JSON containing on-chain Hyperliquid market data — which may include perpetual fill records, position lifecycle events, leaderboard rankings by wallet, trader cohort breakdowns, liquidation risk scores, and HIP-4 prediction market stats — all sourced from first-party node_fills ledger and Hyperliquid's public info API.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "description": "Operator-defined JSON payload. Probe the upstream or consult the operator's /openapi.json for the concrete shape.",
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hyperliquid-on-chain-markets-data-bed59e13/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hyperliquid-data.v1337.org](https://www.zero.xyz/host/hyperliquid-data.v1337.org/llms.txt)
