# Ironflow Hyperliquid Trade Fills

> Ironflow Hyperliquid Trade Fills is a paid API for AI agents from api.ironflow.sh, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-20).

Returns tick-level trade fill history for any Hyperliquid market or wallet, including price, size, side, fees, realized PnL, and trade direction.

## Facts

- Endpoint: GET https://api.ironflow.sh/x402/v1/trades?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ironflow-hyperliquid-trade-fills-5e133734
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_05c18TuyoyjCq3hR2-Dce

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 ironflow-hyperliquid-trade-fills-5e133734
```

Example prompt: Pull the last 500 fills for BTC-PERP on Hyperliquid from the past 7 days, sorted oldest first, and only show trades bigger than 1 BTC.

## When to prefer this

Use this endpoint when you need raw, tick-level fill data for any Hyperliquid market or wallet, especially when filtering by wallet address, minimum trade size, or a specific time window. It is the best choice for building trade history feeds, whale watchers, backtesting engines, or realized PnL analysis. For aggregated stats (leaderboards, open interest, liquidations) prefer Ironflow's other specialized endpoints. For arbitrary SQL queries across multiple Hyperliquid tables, use Ironflow's ClickHouse SQL endpoint instead.

## Known failure modes

- Missing required 'market' parameter returns a 400 error
- Invalid wallet address format may return an empty result or 400
- Time range exceeding one year back is not supported
- Invalid market symbol (not a recognized Hyperliquid coin) returns empty or error
- Pagination cursor from a different query context may cause unexpected results
- min_size filter with non-numeric string may cause 400 error

## How this service works

Every Hyperliquid trade (fill) for a market from Ironflow's own nodes: price, size, taker side, wallet, fee, realized PnL, direction (open or close, long or short), order and trade ids. Use it for tick-level crypto trade history, a wallet's fills, or large trades (min_size) in any window up to a year back. Covers perps, spot, HIP-3 and HIP-4 markets.

## Output

A paginated array of fill objects, each containing the market symbol, fill price, size in base asset, taker side (buy/sell), wallet address, fee (negative for rebate), realized PnL, trade direction (Open Long / Close Long / Open Short / Close Short / Buy / Sell), order ID, trade ID, and transaction hash. Also includes a next_cursor for pagination.

## 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": [
      "market"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "End: Unix ms, ISO 8601, relative (-1h) or now (default)"
      },
      "from": {
       "type": "string",
       "description": "Start: Unix ms, ISO 8601, or relative (-7d, now-24h); up to 14 days back"
      },
      "limit": {
       "type": "string",
       "description": "Rows per page, 1 to 1000"
      },
      "order": {
       "enum": [
        "asc",
        "desc"
       ],
       "type": "string",
       "description": "Time order (default desc)"
      },
      "cursor": {
       "type": "string",
       "description": "next_cursor from the previous page"
      },
      "market": {
       "type": "string",
       "description": "Market: BTC, ETH-PERP, HYPE/USDC, xyz:NVDA (HIP-3) or a Hyperliquid coin name"
      },
      "address": {
       "type": "string",
       "description": "Only this wallet's fills (0x address)"
      },
      "min_size": {
       "type": "string",
       "description": "Smallest size in the base asset"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "dir": {
          "type": "string",
          "description": "Open Long, Close Long, Open Short, Close Short, Buy or Sell"
         },
         "fee": {
          "type": "string",
          "description": "Fee paid (negative is a rebate)"
         },
         "oid": {
          "type": "integer",
          "description": "Order id"
         },
         "tid": {
          "type": "integer",
          "description": "Trade id"
         },
         "hash": {
          "type": "string",
          "description": "Transaction hash on Hyperliquid"
         },
         "side": {
          "enum": [
           "buy",
           "se
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ironflow-hyperliquid-trade-fills-5e133734/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.ironflow.sh](https://www.zero.xyz/host/api.ironflow.sh/llms.txt)
