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

# Get HIP-4 order history JSON Schema

> Get HIP-4 order history JSON Schema contract. Includes route metadata, request parameters, response statuses, examples, and JSON fields for implementation.

Source OpenAPI: 0xArchive API 1.5.0; 140 paths; 119 component schemas.

Get order lifecycle events for a HIP-4 outcome side. Includes order placements, modifications, fills, cancellations, and triggers.

## Route Metadata

| Field                | Value                                          |
| -------------------- | ---------------------------------------------- |
| Method               | `GET`                                          |
| Path                 | `/v1/hyperliquid/hip4/orders/{symbol}/history` |
| operationId          | `getHip4OrderHistory`                          |
| Tag                  | HIP-4 Outcomes - Orders                        |
| Family               | HIP-4                                          |
| Deprecated or legacy | no                                             |

## Request Parameters

### Path Parameters

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "getHip4OrderHistory path parameters",
  "type": "object",
  "required": [
    "symbol"
  ],
  "properties": {
    "symbol": {
      "description": "HIP-4 coin id (e.g., `0` for outcome 0 Yes side, `1` for No side). The `#`-prefixed form (`#0`, `#1`) is also accepted.",
      "type": "string",
      "example": "0",
      "x-parameter-location": "path"
    }
  }
}
```

### Query Parameters

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "getHip4OrderHistory query parameters",
  "type": "object",
  "properties": {
    "start": {
      "description": "Start timestamp (ISO 8601 format, e.g., 2026-05-02T00:00:00Z)",
      "type": "string",
      "format": "date-time",
      "x-parameter-location": "query"
    },
    "end": {
      "description": "End timestamp (ISO 8601 format, e.g., 2026-05-03T00:00:00Z)",
      "type": "string",
      "format": "date-time",
      "x-parameter-location": "query"
    },
    "cursor": {
      "description": "Cursor for pagination (use the value from previous response's `next_cursor`)",
      "type": "string",
      "x-parameter-location": "query"
    },
    "limit": {
      "description": "Maximum number of results (default: 1000, max: 10000)",
      "type": "integer",
      "default": 1000,
      "maximum": 10000,
      "x-parameter-location": "query"
    },
    "status": {
      "description": "Filter by order status",
      "type": "string",
      "enum": [
        "open",
        "filled",
        "canceled",
        "triggered",
        "force_canceled"
      ],
      "x-parameter-location": "query"
    },
    "order_type": {
      "description": "Filter by order type",
      "type": "string",
      "enum": [
        "limit",
        "trigger",
        "tpsl"
      ],
      "x-parameter-location": "query"
    },
    "triggered": {
      "description": "Filter by whether order was triggered",
      "type": "boolean",
      "x-parameter-location": "query"
    },
    "user_address": {
      "description": "Filter by user wallet address",
      "type": "string",
      "x-parameter-location": "query"
    }
  }
}
```

## Response Contracts

### Status 200

Order lifecycle events

#### application/json

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "getHip4OrderHistory response 200",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer"
        },
        "next_cursor": {
          "type": "string"
        },
        "request_id": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    "success": {
      "type": "boolean",
      "example": true
    }
  }
}
```

### Status 400

Invalid request

#### application/json

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "getHip4OrderHistory response 400",
  "description": "Error response",
  "type": "object",
  "properties": {
    "code": {
      "description": "HTTP status code",
      "type": "integer"
    },
    "error": {
      "description": "Error message",
      "type": "string"
    }
  }
}
```

##### OpenAPI example

```json theme={"theme":"github-dark"}
{
  "code": 400,
  "error": "Invalid request parameters"
}
```

### Status 401

Authentication required

#### application/json

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "getHip4OrderHistory response 401",
  "description": "Error response",
  "type": "object",
  "properties": {
    "code": {
      "description": "HTTP status code",
      "type": "integer"
    },
    "error": {
      "description": "Error message",
      "type": "string"
    }
  }
}
```

##### OpenAPI example

```json theme={"theme":"github-dark"}
{
  "code": 401,
  "error": "Missing or invalid API key. Provide X-API-Key header."
}
```

### Status 429

Rate limit exceeded

#### application/json

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "getHip4OrderHistory response 429",
  "description": "Error response",
  "type": "object",
  "properties": {
    "code": {
      "description": "HTTP status code",
      "type": "integer"
    },
    "error": {
      "description": "Error message",
      "type": "string"
    }
  }
}
```

##### OpenAPI example

```json theme={"theme":"github-dark"}
{
  "code": 429,
  "error": "Rate limit exceeded"
}
```
