# Hyperliquid Account Trade Fills

> Hyperliquid Account Trade Fills is a paid API for AI agents from hyperliquid-accounts.use.x402atlas.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Retrieves up to 2000 recent trade fills for a Hyperliquid account by 0x address, including price, size, fee, and closed PnL per fill.

## Facts

- Endpoint: GET https://hyperliquid-accounts.use.x402atlas.com/fills
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hyperliquid-account-trade-fills-d448be44
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_acsNd835ckjxfo6h1dlOE

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-account-trade-fills-d448be44
```

Example prompt: Pull the recent trade fills for Hyperliquid account 0x1234567890abcdef1234567890abcdef12345678 — I want to see the prices, sizes, fees, and closed PnL for each fill.

## When to prefer this

Use this endpoint when you need detailed per-trade execution data (price, size, fee, closed PnL) for a specific Hyperliquid account. Prefer this over the portfolio value or open positions endpoints when the goal is trade history analysis, PnL attribution, or fee auditing rather than current account state.

## Known failure modes

- Invalid or malformed 0x address returns a validation error
- Address with no trade history returns count 0 and empty fills array
- Hyperliquid upstream unavailable causes a gateway or timeout error
- Non-hex characters in address fail pattern validation
- Payment not completed results in 402 Payment Required

## How this service works

A Hyperliquid account's recent trade fills (up to 2000) with price, size, fee and closed PnL, for any 0x address.

## Output

Returns a JSON object containing the queried address (lowercased), the timestamp of the query, the count of fills returned, and an array of up to 2000 fill objects — each with coin, side, price, size, fee, closed PnL, direction, and timestamp — relayed verbatim from Hyperliquid's userFills 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "0x-prefixed 20-byte Hyperliquid account address"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "queried_at",
      "address",
      "count",
      "fills"
     ],
     "properties": {
      "count": {
       "type": "integer",
       "minimum": 0,
       "description": "Number of fills returned"
      },
      "fills": {
       "type": "array",
       "items": {
        "type": "object"
       },
       "description": "Upstream Hyperliquid userFills array relayed verbatim (up to 2000 most recent) — coin, side, price, size, fee, closed PnL, direction and timestamp per fill"
      },
      "address": {
       "type": "string",
       "description": "Lower-cased account address queried"
      },
      "queried_at": {
       "type": "string",
       "format": "date-time",
       "description": "Time the upstream was queried"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 0,
  "fills": [],
  "address": "0x0000000000000000000000000000000000000000",
  "queried_at": "2026-07-10T12:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hyperliquid-account-trade-fills-d448be44/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hyperliquid-accounts.use.x402atlas.com](https://www.zero.xyz/host/hyperliquid-accounts.use.x402atlas.com/llms.txt)
