# Hyperliquid Perpetual Trading History

> Hyperliquid Perpetual Trading History is a paid API for AI agents from x402-trading.useotto.xyz, paid per call via x402, $0.001000/call, status unknown (last checked 2026-09-13).

Retrieves historical trading activity for a Hyperliquid perpetual account, including fills, funding payments, and PnL, given a wallet address.

## Facts

- Endpoint: GET https://x402-trading.useotto.xyz/hl-transaction-history
- Price: $0.001000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-trading-useotto-xyz-c69fde89
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kkXIlHUaHhukVRj8WIOKr

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 x402-trading-useotto-xyz-c69fde89
```

Example prompt: Pull up all the Hyperliquid perpetual trading history for wallet address 0xAbC123...including my fills, funding payments, and PnL.

## When to prefer this

Use this endpoint when you need historical trading data specifically from Hyperliquid perpetuals for a given wallet address, including fills, funding, and PnL. Prefer this over generic portfolio endpoints when the user wants a detailed audit trail of perp trades rather than a current snapshot of positions.

## Known failure modes

- Missing or invalid EVM wallet address returns an error
- Address with no Hyperliquid activity returns an empty history array
- Malformed address format causes request rejection
- Network or upstream Hyperliquid API unavailability causes timeout or error
- Payment failure via x402 protocol prevents data retrieval

## How this service works

Hyperliquid perpetual trading history including fills, funding payments, and PnL

## Output

Returns a history array containing the wallet's Hyperliquid perpetual trading activity, including executed fills (trade entries/exits), funding payments made or received, and profit and loss figures across positions.

## 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",
       "description": "EVM wallet address"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "status": {
       "type": "string"
      },
      "history": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-trading-useotto-xyz-c69fde89/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-trading.useotto.xyz](https://www.zero.xyz/host/x402-trading.useotto.xyz/llms.txt)
