# Hyperliquid — Query order status by oid or cloid

Get Hyperliquid Order Status data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Hyperliquid, pass parameters such as oid, type, user, and retrieve structured data including outer lookup status, reported order business status, order-status timestamp, exchange order identifier, and order coin identifier for order investigation, and state displays.

Documentation: https://openany.si/hyperliquid/hyperliquid-query-order-status-by-oid-or-cloid/a9347174-661b-4cfd-b0cd-2e4f5af1e67c/
API ID: a9347174-661b-4cfd-b0cd-2e4f5af1e67c
Provider: hyperliquid
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/hyperliquid/info/order-status
Page update time: 2026-12-03T02:49:34.479Z
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:33.946Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Hyperliquid Order Status API

Use type="orderStatus", user and oid. oid accepts a uint64 JSON integer or a 16-byte hexadecimal client order ID string. Check the outer status before reading the nested order object, its business status and statusTimestamp.

## What You Can Build

- **Order investigation**: Connect an order identity with its reported status time.
- **State displays**: Keep lookup state separate from order state.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `status` | Outer lookup status |
| `order.status` | Reported order business status |
| `order.statusTimestamp` | Order-status timestamp |
| `order.order.oid` | Exchange order identifier |
| `order.order.coin` | Order coin identifier |
| `order.order.limitPx` | Order limit price |
| `order.order.sz` | Reported remaining order size |
| `order.order.cloid` | Client order identifier; can be null |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hyperliquid — Query order status by oid or cloid 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": [
        {
          "oid": 11749350620,
          "type": "orderStatus",
          "user": "0x677d831aef5328190852e24f13c46cac05f984e7"
        }
      ],
      "properties": {
        "oid": {
          "anyOf": [
            {
              "maximum": 18446744073709551615,
              "minimum": 0,
              "type": "integer"
            },
            {
              "pattern": "^0x[0-9a-fA-F]{32}$",
              "type": "string"
            }
          ],
          "description": "原生订单 ID：uint64 数字，或 16 字节十六进制 cloid。数字分支已实测；cloid 分支来自官方文档，未单独实测。",
          "example": 11749350620
        },
        "type": {
          "const": "orderStatus",
          "description": "Fixed native Info query discriminator.",
          "enum": [
            "orderStatus"
          ],
          "example": "orderStatus",
          "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",
        "oid"
      ],
      "type": "object",
      "description": "Query order status by oid or cloid Documentation prepared only; runtime not verified."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "order": {
      "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": {
              "type": "string"
            },
            "timestamp": {
              "type": "integer"
            },
            "triggerCondition": {
              "type": "string"
            },
            "triggerPx": {
              "type": "string"
            }
          }
        },
        "status": {
          "type": "string"
        },
        "statusTimestamp": {
          "type": "integer"
        }
      }
    },
    "status": {
      "type": "string"
    }
  }
}
```

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

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "order": {
    "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
  },
  "status": "order"
}
```

## 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
### Where do I put a client order ID?
Use the oid property for either supported branch. A client ID must be 0x followed by 32 hexadecimal characters; there is no separate cloid request property.

### Can I quote a numeric order ID to avoid precision loss?
The numeric branch requires a JSON integer from 0 to 18446744073709551615. A quoted decimal string is outside the schema; use a client and JSON serializer that preserve the required integer precision.

### Are the two status fields equivalent?
No. The outer status describes the lookup result, while order.status describes a returned order. Check the outer result before reading nested details.

### Does the request change or cancel an order?
No. It reads status. Order creation, changes and cancellation require separate actions.

### 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-query-order-status-by-oid-or-cloid/a9347174-661b-4cfd-b0cd-2e4f5af1e67c/

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