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 per-order diff events for the L4 orderbook. Each diff represents an individual order placement, modification, fill, or cancellation. Requires Pro tier or higher.
| Field | Value |
|---|
| Method | GET |
| Path | /v1/hyperliquid/orderbook/{symbol}/l4/diffs |
| operationId | getHyperliquidL4Diffs |
| Tag | Hyperliquid - L4 Order Book |
| Family | Hyperliquid Core |
| Deprecated or legacy | no |
Request Parameters
Path Parameters
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "getHyperliquidL4Diffs path parameters",
"type": "object",
"required": [
"symbol"
],
"properties": {
"symbol": {
"description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
"type": "string",
"example": "BTC",
"x-parameter-location": "path"
}
}
}
Query Parameters
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "getHyperliquidL4Diffs query parameters",
"type": "object",
"properties": {
"start": {
"description": "Start timestamp (ISO 8601 format, e.g., 2026-01-01T00:00:00Z)",
"type": "string",
"format": "date-time",
"x-parameter-location": "query"
},
"end": {
"description": "End timestamp (ISO 8601 format, e.g., 2026-01-02T00: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"
}
}
}
Response Contracts
Status 200
L4 orderbook diff events
application/json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "getHyperliquidL4Diffs 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": "getHyperliquidL4Diffs 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": "getHyperliquidL4Diffs 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": "getHyperliquidL4Diffs 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"
}