# Hyperliquid Trader Ledger

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

Retrieves the complete fill and position ledger history for a specific Hyperliquid trader wallet, sourced from the operator's own node_fills data plus the Hyperliquid public API.

## Facts

- Endpoint: POST https://hyperliquid-data.v1337.org/v1/traders/ledger
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hyperliquid-trader-ledger-0ed11981
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x6ZfnB3vXSthrnFtUqfpq

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-trader-ledger-0ed11981 -d '<json body>'
```

Example prompt: Pull the complete perp fill ledger from Hyperliquid for wallet 0x1234...abcd so I can see every trade they've made and how their positions opened and closed.

## When to prefer this

Choose this endpoint when you need granular, first-party fill-level trade history for a specific Hyperliquid wallet, computed directly from the operator's own node_fills ledger rather than a third-party aggregator. It is ideal for auditing trader activity, reconstructing position lifecycles, or feeding trading analytics pipelines without needing an API key or account — just $0.001 USDC per call via x402 on Base.

## Known failure modes

- Invalid or unrecognized wallet address returns an empty or error response
- Payment not settled via x402 on Base results in a 402 Payment Required response
- Malformed POST body or missing required fields returns a 400 validation error
- Wallet with no Hyperliquid activity returns an empty fills array
- Rate limiting or node sync delays may cause partial or stale data

## 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 a structured ledger of perpetual fills and position lifecycle events for the queried wallet, including entry/exit prices, sizes, timestamps, asset symbols, and PnL data, derived from the operator's node_fills index and the Hyperliquid 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-trader-ledger-0ed11981/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)
