Skip to main content
GET
https://api.0xarchive.io
/
v1
/
hyperliquid
/
hip4
/
orderbook
/
{symbol}
/
l4
/
diffs
Get HIP-4 L4 orderbook diffs
curl --request GET \
  --url https://api.0xarchive.io/v1/hyperliquid/hip4/orderbook/{symbol}/l4/diffs \
  --header 'X-API-Key: <api-key>'
import requests

url = "https://api.0xarchive.io/v1/hyperliquid/hip4/orderbook/{symbol}/l4/diffs"

headers = {"X-API-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};

fetch('https://api.0xarchive.io/v1/hyperliquid/hip4/orderbook/{symbol}/l4/diffs', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.0xarchive.io/v1/hyperliquid/hip4/orderbook/{symbol}/l4/diffs"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-API-Key", "<api-key>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
{
  "success": true,
  "data": [
    {}
  ],
  "meta": {
    "count": 123,
    "next_cursor": "<string>",
    "request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}
{
  "code": 400,
  "error": "Invalid request parameters"
}
{
  "code": 401,
  "error": "Missing or invalid API key. Provide X-API-Key header."
}
{
  "code": 429,
  "error": "Rate limit exceeded"
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get yours at https://0xarchive.io/dashboard

Path Parameters

symbol
string
required

HIP-4 coin id (e.g., 0 for outcome 0 Yes side, 1 for No side). The #-prefixed form (#0, #1) is also accepted.

Example:

"0"

Query Parameters

start
string<date-time>

Start timestamp (ISO 8601 format, e.g., 2026-05-02T00:00:00Z)

end
string<date-time>

End timestamp (ISO 8601 format, e.g., 2026-05-03T00:00:00Z)

cursor
string

Cursor for pagination (use the value from previous response's next_cursor)

limit
integer
default:1000

Maximum number of results (default: 1000, max: 10000)

Required range: x <= 10000

Response

L4 orderbook diff events

success
boolean
Example:

true

data
object[]
meta
object
Last modified on July 7, 2026