> ## Documentation Index
> Fetch the complete documentation index at: https://goldrush.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# historicalOrders | Hyperliquid Info API

> Hyperliquid historicalOrders: fetch a user's recent orders - both open and finalized - each with its current status and status timestamp.

> [card] Credit Cost
>
> 1 per call

> [card] Processing
>
> Realtime

The Hyperliquid info endpoint with `type: "historicalOrders"` is used to fetch a user's recent orders - both open and finalized - each with its current status and status timestamp.

> [!TIP]
>
> Estimate your monthly cost for this API using the [Pricing Calculator](https://goldrush.dev/docs/pricing-calculator.md?endpoint=%2Fapi-reference%2Fhyperliquid-info%2Fhistorical-orders).

> [!NOTE]
>
> * Wire-equal to `POST api.hyperliquid.xyz/info` with `{"type": "historicalOrders", "user": "0x..."}`.
> * Returns the user's most recent orders across every coin, open and finalized (filled, canceled, and other terminal states). For only the currently-resting orders, use `openOrders` or `frontendOpenOrders`.
> * `limit` caps the number returned; the default and maximum is 2000.

Returns an array of the user's recent orders, newest-relevant first, each wrapped with the order's terminal-or-current status and the millisecond timestamp that status was set. Use it to reconstruct recent order history, audit fills/cancels, or drive an activity view.

## Endpoint

```
POST https://hypercore.goldrushdata.com/info
Authorization: Bearer <GOLDRUSH_API_KEY>
Content-Type: application/json
```

## Request

**type** `string` *required* (default: historicalOrders)

Always `"historicalOrders"`.

**user** `string` *required*

The account address in 42-character hex format, e.g. `"0x0000000000000000000000000000000000000000"`.

**limit** `int`

Maximum number of orders to return. Defaults to `2000`; values above `2000` are capped at `2000`.

### Example

```bash cURL theme={null}
curl -X POST https://hypercore.goldrushdata.com/info \
  -H "Authorization: Bearer $GOLDRUSH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "historicalOrders",
    "user": "0x31ca8395cf837de08b24da3f660e77761dfb974b",
    "limit": 100
  }'
```

```typescript TypeScript theme={null}
const response = await fetch("https://hypercore.goldrushdata.com/info", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GOLDRUSH_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    type: "historicalOrders",
    user: "0x31ca8395cf837de08b24da3f660e77761dfb974b",
    limit: 100,
  }),
});

const orders = await response.json();
for (const { order, status, statusTimestamp } of orders) {
  console.log(order.coin, order.side, order.oid, status, statusTimestamp);
}
```

```python Python theme={null}
import os, requests

response = requests.post(
    "https://hypercore.goldrushdata.com/info",
    headers={"Authorization": f"Bearer {os.environ['GOLDRUSH_API_KEY']}"},
    json={"type": "historicalOrders", "user": "0x31ca8395cf837de08b24da3f660e77761dfb974b", "limit": 100},
)

for entry in response.json():
    o = entry["order"]
    print(o["coin"], o["side"], o["oid"], entry["status"], entry["statusTimestamp"])
```

## Response

An array of order entries. Each element pairs the `order` with its `status` and the millisecond timestamp that status took effect.

```json theme={null}
[
  {
    "order": {
      "coin": "POPCAT",
      "side": "A",
      "limitPx": "0.043668",
      "sz": "16812.0",
      "oid": 513957677284,
      "timestamp": 1786384269962,
      "triggerCondition": "N/A",
      "isTrigger": false,
      "triggerPx": "0.0",
      "children": [],
      "isPositionTpsl": false,
      "reduceOnly": false,
      "orderType": "Limit",
      "origSz": "16812.0",
      "tif": "Alo",
      "cloid": null
    },
    "status": "canceled",
    "statusTimestamp": 1786384274789
  }
]
```

### Field descriptions

> [!NOTE]
>
> `limitPx`, `sz`, `origSz`, and `triggerPx` are returned as **decimal strings**, preserving upstream precision. Do not parse them as floats.

**\[]** `array\<object\>`

One entry per order.

**entry fields**

**order** `object`

The order.

**order fields**

**coin** `string`

Asset symbol, e.g. `"BTC"`, `"POPCAT"`, or `"@107"` for spot.

**side** `string`

`"B"` = bid (buy), `"A"` = ask (sell).

**limitPx** `string`

Limit price (decimal string).

**sz** `string`

Remaining size (decimal string).

**origSz** `string`

Original order size (decimal string).

**oid** `int`

Order id.

**cloid** `string | null`

Client order id (hex) if one was supplied, else `null`.

**timestamp** `int`

Order creation time (ms since epoch).

**orderType** `string`

e.g. `"Limit"`, `"Stop Market"`, `"Stop Limit"`.

**tif** `string | null`

Time-in-force, e.g. `"Alo"`, `"Gtc"`, `"Ioc"`.

**reduceOnly** `bool`

Whether the order is reduce-only.

**isTrigger** `bool`

Whether it is a trigger (stop/take-profit) order.

**triggerCondition** `string`

Human-readable trigger condition, or `"N/A"`.

**triggerPx** `string`

Trigger price (decimal string).

**isPositionTpsl** `bool`

Whether it is a position-level TP/SL.

**children** `array`

Child orders (e.g. TP/SL legs) attached to this order.

**status** `string`

The order's current or terminal status. Hyperliquid defines many values; observed examples include `"open"`, `"filled"`, `"canceled"`, `"selfTradeCanceled"`, and `"iocCancelRejected"`.

**statusTimestamp** `int`

Millisecond timestamp when the status took effect.

## Related endpoints

> [card] [frontendOpenOrders](https://goldrush.dev/docs/api-reference/hyperliquid-info/frontend-open-orders.md)
>
> fetch a user's currently open orders enriched with frontend metadata.

> [card] [openOrders](https://goldrush.dev/docs/api-reference/hyperliquid-info/open-orders.md)
>
> list a user's resting open orders.

> [card] [orderStatus](https://goldrush.dev/docs/api-reference/hyperliquid-info/order-status.md)
>
> look up the status of a single order for a user, by order id (oid) or client order id (cloid).

See all Hyperliquid endpoints: [Overview hub](https://goldrush.dev/docs/goldrush-hyperliquid/overview.md) · [Info API reference](https://goldrush.dev/docs/goldrush-hyperliquid/info-api/overview.md)

*Last reviewed: 2026-08-17*


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.