# Hyperliquid — Retrieve a user's fills

Get Hyperliquid User Fills data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Hyperliquid, pass parameters such as type, user, and retrieve structured data including fill coin identifier, exchange order identifier, execution price, execution size, and reported execution side for execution history, and activity comparisons, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/hyperliquid/hyperliquid-retrieve-a-user-s-fills/2398ed2f-61bf-4cf1-92c1-1a18ddbd2f7a/
API ID: 2398ed2f-61bf-4cf1-92c1-1a18ddbd2f7a
Provider: hyperliquid
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/hyperliquid/info/user-fills
Page update time: 2026-12-03T02:49:34.505Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:34.002Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Hyperliquid User Fills API

POST type="userFills" and user, with optional aggregateByTime. The response is an array of fill records; keep coin, oid and time together and preserve decimal-string economics. This route has no startTime, endTime or cursor input.

## What You Can Build

- **Execution history**: Display fills with order and coin identifiers.
- **Activity comparisons**: Keep aggregation settings consistent when comparing row counts.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `[].coin` | Fill coin identifier |
| `[].oid` | Exchange order identifier |
| `[].px` | Execution price |
| `[].sz` | Execution size |
| `[].side` | Reported execution side |
| `[].time` | Fill timestamp |
| `[].fee` | Reported fill fee |
| `[].closedPnl` | Reported closed profit-and-loss value |
| `[].crossed` | Crossing flag |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hyperliquid — Retrieve a user's fills request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "additionalProperties": false,
      "examples": [
        {
          "type": "userFills",
          "user": "0x677d831aef5328190852e24f13c46cac05f984e7"
        }
      ],
      "properties": {
        "aggregateByTime": {
          "description": "When true, partial fills are combined when a crossing order gets filled by multiple different resting orders. Resting orders filled by multiple crossing orders are only aggregated if in the same block.",
          "type": "boolean"
        },
        "type": {
          "const": "userFills",
          "description": "Fixed native Info query discriminator.",
          "enum": [
            "userFills"
          ],
          "example": "userFills",
          "type": "string"
        },
        "user": {
          "description": "Address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000.",
          "example": "0x677d831aef5328190852e24f13c46cac05f984e7",
          "pattern": "^0x[0-9a-fA-F]{40}$",
          "type": "string"
        }
      },
      "required": [
        "type",
        "user"
      ],
      "type": "object",
      "description": "Retrieve a user's fills Documentation prepared only; runtime not verified."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "closedPnl": {
        "type": "string"
      },
      "coin": {
        "type": "string"
      },
      "crossed": {
        "type": "boolean"
      },
      "dir": {
        "type": "string"
      },
      "fee": {
        "type": "string"
      },
      "hash": {
        "type": "string"
      },
      "oid": {
        "type": "integer"
      },
      "px": {
        "type": "string"
      },
      "side": {
        "type": "string"
      },
      "startPosition": {
        "type": "string"
      },
      "sz": {
        "type": "string"
      },
      "time": {
        "type": "integer"
      }
    }
  }
}
```

## Request example
Scenario: Documentation example (source abbreviated)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/hyperliquid/info/user-fills' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "type": "userFills",
  "user": "0x677d831aef5328190852e24f13c46cac05f984e7"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
[
  {
    "closedPnl": "0.0",
    "coin": "@127",
    "crossed": true,
    "dir": "Spot Dust Conversion",
    "fee": "0.0",
    "hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "oid": 110049801917,
    "px": "0.068061",
    "side": "A",
    "startPosition": "0.00413333",
    "sz": "0.00413333",
    "time": 1751846400068
  },
  {
    "closedPnl": "0.0",
    "coin": "@125",
    "crossed": true,
    "dir": "Spot Dust Conversion",
    "fee": "0.0",
    "hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "oid": 110049801911,
    "px": "0.058972",
    "side": "A",
    "startPosition": "0.00789787",
    "sz": "0.00789787",
    "time": 1751846400068
  },
  {
    "closedPnl": "0.0",
    "coin": "@3",
    "crossed": true,
    "dir": "Spot Dust Conversion",
    "fee": "0.0",
    "hash": "0x171bc45c0156e35b3270040e00a3e9014600ba2a302b789da3ce1661781be7d3",
    "oid": 30932195254,
    "px": "0.01772595",
    "side": "A",
    "startPosition": "0.08548",
    "sz": "0.08548",
    "time": 1721779200121
  }
]
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### What does aggregateByTime change?
When true, partial fills can be combined under the documented crossing-order and same-block rules. Keep the chosen aggregation setting with any downstream counts.

### Can I specify a time window here?
No. Use the separate userFillsByTime implementation for startTime and optional endTime.

### Can one order have several fill records?
Yes. Preserve order and timestamp context, and do not equate fill-row count with distinct-order count.

### Is a reported fee the OpenAny request charge?
No. It is fill economics from Hyperliquid. OpenAny request billing is separate.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- hyperliquid: https://openany.si/hyperliquid/hyperliquid-retrieve-a-user-s-fills/2398ed2f-61bf-4cf1-92c1-1a18ddbd2f7a/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
