# Hyperliquid Closed Positions Lookup

> Hyperliquid Closed Positions Lookup 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).

Retrieves closed perpetual position history and lifecycle data for one or more Hyperliquid wallet addresses

## Facts

- Endpoint: POST https://hyperliquid-data.v1337.org/v1/traders/closed-positions
- 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-closed-positions-lookup-809f435f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eOkl4fkjCPI-MIP_lYzVI

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-closed-positions-lookup-809f435f -d '<json body>'
```

Example prompt: Pull the closed perpetual position history for Hyperliquid wallet 0xABC123... and show me the realized PnL and trade duration for each position.

## When to prefer this

Choose this endpoint when you need authoritative, first-party closed position data for Hyperliquid perpetual traders sourced directly from the node_fills ledger — not aggregated third-party data. Ideal for realized PnL analysis, trader performance review, copy-trading vetting, or tax reporting. Prefer over generic on-chain explorers when you specifically need structured lifecycle data (entry, exit, duration, PnL) for Hyperliquid perps.

## Known failure modes

- Invalid or unrecognized wallet address returns empty result or 400 error
- Wallet with no closed positions returns empty array
- Payment not attached or insufficient USDC triggers 402 response requiring x402 payment on Base
- Malformed request body returns validation error
- Rate limiting or node unavailability may produce 503 or timeout

## 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 list of closed perpetual positions for the queried wallet(s), including entry and exit fill details, realized PnL, position size, asset traded, open/close timestamps, and trade duration — sourced directly from Hyperliquid's node_fills ledger.

## 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-closed-positions-lookup-809f435f/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)
