HIP-4 Outcomes - Order Book
Get HIP-4 order book history
Get historical L2 order book snapshots within a time range with cursor pagination. Data available from May 2026.
get/v1/hyperliquid/hip4/orderbook/{symbol}/history
Request
- Base URL: https://api.0xarchive.io
- URL: https://api.0xarchive.io/v1/hyperliquid/hip4/orderbook/{symbol}/history
- Auth: API key in header X-API-Key
Path parameters
symbolstring required
Example:0
HIP-4 coin id (e.g., 0 for outcome 0 Yes side, 1 for No side). The #-prefixed form (#0, #1) is also accepted.
Query parameters
startinteger
Start timestamp in Unix milliseconds. Defaults to 24h ago.
endinteger
End timestamp in Unix milliseconds. Defaults to now.
cursorinteger
Cursor for pagination
limitinteger
Maximum number of results (default: 100, max: 1000)
depthinteger
Requested price levels per side. The HIP-4 native L2 route is capped at 20 levels per side.
Response
List of order book snapshots
Example response
{
"success": true,
"data": [
{
"symbol": "BTC",
"coin": "BTC",
"timestamp": "2025-01-21T10:30:45.123Z",
"bids": [
{
"px": "42150.00",
"sz": "1.5",
"n": 15
}
],
"asks": [
{
"px": "42150.00",
"sz": "1.5",
"n": 15
}
],
"mid_price": "42150.50",
"spread": "1.00",
"spread_bps": "2.37"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.