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.
Source OpenAPI: 0xArchive API 1.5.0; 116 paths; 90 component schemas.
Get the full L4 (individual order-level) orderbook reconstruction for a HIP-4 outcome side. Returns the latest snapshot if no timestamp is provided. Requires Pro tier or higher.
| Field | Value |
|---|
| Method | GET |
| Path | /v1/hyperliquid/hip4/orderbook/{symbol}/l4 |
| operationId | getHip4L4Orderbook |
| Tag | HIP-4 Outcomes - Order Book |
| Family | HIP-4 |
| Deprecated or legacy | no |
Request Parameters
Path Parameters
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "getHip4L4Orderbook 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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "getHip4L4Orderbook query parameters",
"type": "object",
"properties": {
"timestamp": {
"description": "ISO 8601 timestamp. If not provided, returns latest snapshot.",
"type": "string",
"format": "date-time",
"x-parameter-location": "query"
}
}
}
Response Contracts
Status 200
L4 orderbook snapshot
application/json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "getHip4L4Orderbook 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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "getHip4L4Orderbook response 400",
"description": "Error response",
"type": "object",
"properties": {
"code": {
"description": "HTTP status code",
"type": "integer"
},
"error": {
"description": "Error message",
"type": "string"
}
}
}
OpenAPI example
{
"code": 400,
"error": "Invalid request parameters"
}
Status 401
Authentication required
application/json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "getHip4L4Orderbook response 401",
"description": "Error response",
"type": "object",
"properties": {
"code": {
"description": "HTTP status code",
"type": "integer"
},
"error": {
"description": "Error message",
"type": "string"
}
}
}
OpenAPI example
{
"code": 401,
"error": "Missing or invalid API key. Provide X-API-Key header."
}
Status 429
Rate limit exceeded
application/json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "getHip4L4Orderbook response 429",
"description": "Error response",
"type": "object",
"properties": {
"code": {
"description": "HTTP status code",
"type": "integer"
},
"error": {
"description": "Error message",
"type": "string"
}
}
}
OpenAPI example
{
"code": 429,
"error": "Rate limit exceeded"
}