# Pa1m Hyperliquid History

> Pa1m Hyperliquid History is a paid API for AI agents from hyperliquid.hypa1m.xyz, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-19).

Retrieves historical perpetuals position and margin data for a given Hyperliquid wallet address

## Facts

- Endpoint: GET https://hyperliquid.hypa1m.xyz/history/%7Baddress%7D?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pa1m-hyperliquid-history-8c2c749c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mn0nVy1YVFy1cCxBwWN3b

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 pa1m-hyperliquid-history-8c2c749c
```

Example prompt: Pull the perpetuals position history and margin summary for Hyperliquid wallet address 0xAbC123... so I can see what trades they've made.

## When to prefer this

Use this endpoint when you need on-chain perpetuals position and margin history for a specific Hyperliquid wallet address, especially in DeFi analytics, portfolio monitoring, or trader research workflows. Prefer this over general blockchain explorers when you specifically want Hyperliquid perp data in a structured, AI-ready format with micropayment access.

## Known failure modes

- Invalid or malformed wallet address returns an error or empty result
- Address with no Hyperliquid activity returns empty positions array and empty marginSummary
- Payment failure (402) if USDC micropayment is not correctly attached
- Rate limiting or timeout if Hyperliquid's underlying API is unavailable
- Non-existent address may return empty data rather than an explicit error

## How this service works

Real-time Hyperliquid perpetuals data for AI agents.

## Output

Returns a JSON object containing a list of perpetual positions (with details like asset, size, entry price, PnL) and a margin summary (including account value, margin usage, and unrealized PnL) for the queried wallet address.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "EVM wallet address, 0x..."
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "positions": [],
  "marginSummary": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pa1m-hyperliquid-history-8c2c749c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hyperliquid.hypa1m.xyz](https://www.zero.xyz/host/hyperliquid.hypa1m.xyz/llms.txt)
