# Hyperliquid — Retrieve a user's historical orders

Get Hyperliquid Historical Orders 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 exchange order identifier, order coin identifier, order limit price, original order size, and reported order size for order timelines, and historical investigation.

Documentation: https://openany.si/hyperliquid/hyperliquid-retrieve-a-user-s-historical-orders/14ef3af4-a86a-47d9-a6d5-613e5ece7488/
API ID: 14ef3af4-a86a-47d9-a6d5-613e5ece7488
Provider: hyperliquid
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/hyperliquid/info/historical-orders
Page update time: 2026-12-03T02:49:34.536Z
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.064Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Hyperliquid Historical Orders API

Send type="historicalOrders" and user. The root array contains order wrappers with status and statusTimestamp. Keep each wrapper’s status with its nested order; repeated order identifiers should not automatically be discarded as identical records.

## What You Can Build

- **Order timelines**: Display states with their reported timestamps.
- **Historical investigation**: Keep nested order data and wrapper state together.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `[].order.oid` | Exchange order identifier |
| `[].order.coin` | Order coin identifier |
| `[].order.limitPx` | Order limit price |
| `[].order.origSz` | Original order size |
| `[].order.sz` | Reported order size |
| `[].order.reduceOnly` | Reduce-only flag |
| `[].status` | Reported order state |
| `[].statusTimestamp` | Order-state timestamp |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hyperliquid — Retrieve a user's historical orders 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": "historicalOrders",
          "user": "0x677d831aef5328190852e24f13c46cac05f984e7"
        }
      ],
      "properties": {
        "type": {
          "const": "historicalOrders",
          "description": "Fixed native Info query discriminator.",
          "enum": [
            "historicalOrders"
          ],
          "example": "historicalOrders",
          "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 historical orders 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": {
      "order": {
        "type": "object",
        "properties": {
          "children": {
            "type": "array",
            "items": {}
          },
          "cloid": {
            "type": "null"
          },
          "coin": {
            "type": "string"
          },
          "isPositionTpsl": {
            "type": "boolean"
          },
          "isTrigger": {
            "type": "boolean"
          },
          "limitPx": {
            "type": "string"
          },
          "oid": {
            "type": "integer"
          },
          "orderType": {
            "type": "string"
          },
          "origSz": {
            "type": "string"
          },
          "reduceOnly": {
            "type": "boolean"
          },
          "side": {
            "type": "string"
          },
          "sz": {
            "type": "string"
          },
          "tif": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "timestamp": {
            "type": "integer"
          },
          "triggerCondition": {
            "type": "string"
          },
          "triggerPx": {
            "type": "string"
          }
        }
      },
      "status": {
        "type": "string"
      },
      "statusTimestamp": {
        "type": "integer"
      }
    }
  }
}
```

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

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
[
  {
    "order": {
      "children": [],
      "cloid": null,
      "coin": "BNB",
      "isPositionTpsl": false,
      "isTrigger": false,
      "limitPx": "444.07",
      "oid": 11749350620,
      "orderType": "Market",
      "origSz": "0.422",
      "reduceOnly": true,
      "side": "B",
      "sz": "0.0",
      "tif": "FrontendMarket",
      "timestamp": 1709431824872,
      "triggerCondition": "N/A",
      "triggerPx": "0.0"
    },
    "status": "filled",
    "statusTimestamp": 1709431824872
  },
  {
    "order": {
      "children": [],
      "cloid": null,
      "coin": "BNB",
      "isPositionTpsl": false,
      "isTrigger": false,
      "limitPx": "444.07",
      "oid": 11749350620,
      "orderType": "Market",
      "origSz": "0.422",
      "reduceOnly": true,
      "side": "B",
      "sz": "0.422",
      "tif": "FrontendMarket",
      "timestamp": 1709431824872,
      "triggerCondition": "N/A",
      "triggerPx": "0.0"
    },
    "status": "open",
    "statusTimestamp": 1709431824872
  },
  {
    "order": {
      "children": [],
      "cloid": null,
      "coin": "BNB",
      "isPositionTpsl": false,
      "isTrigger": false,
      "limitPx": "237.46",
      "oid": 446606097,
      "orderType": "Market",
      "origSz": "0.0",
      "reduceOnly": false,
      "side": "A",
      "sz": "0.422",
      "tif": null,
      "timestamp": 1686701109138,
      "triggerCondition": "N/A",
      "triggerPx": "0.0"
    },
    "status": "open",
    "statusTimestamp": 1686701109138
  },
  {
    "order": {
      "children": [],
      "cloid": null,
      "coin": "BNB",
      "isPositionTpsl": false,
      "isTrigger": false,
      "limitPx": "237.46",
      "oid": 446606097,
      "orderType": "Market",
      "origSz": "0.0",
      "reduceOnly": false,
      "side": "A",
      "sz": "0.0",
      "tif": null,
      "timestamp": 1686701109138,
      "triggerCondition": "N/A",
      "triggerPx": "0.0"
    },
    "status": "filled",
    "statusTimestamp": 1686701109138
  }
]
```

## 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
### Can I filter by time or cursor?
This implementation accepts type and user only. It does not expose time-range, cursor or limit inputs.

### Can the same order ID appear more than once?
Preserve the returned status and statusTimestamp with each order wrapper. Do not discard a row solely because another row shares its oid.

### Does sz=0 identify the order’s original size?
No. origSz and sz are distinct fields. Keep both when interpreting order history.

### Does reading history replay a previous order?
No. It reads records and does not submit or repeat an order.

### 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-historical-orders/14ef3af4-a86a-47d9-a6d5-613e5ece7488/

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