SDK REST Usage
Begin with one client, one key, and one request that matches the REST reference.
Use the official clients for typed requests across market data, order-level routes, data-quality monitoring, and wallet/web3 flows.
REST usage
Begin with one client, one key, and one request. The SDK method names stay close to the REST reference.
# pip install oxarchivefrom oxarchive import Client
client = Client(api_key="0xa_your_api_key")
# Hyperliquid datahl_orderbook = client.hyperliquid.orderbook.get("BTC")print(f"Hyperliquid BTC mid price: {hl_orderbook.mid_price}")
# Lighter.xyz datalighter_orderbook = client.lighter.orderbook.get("BTC")print(f"Lighter BTC mid price: {lighter_orderbook.mid_price}")
# HIP-3 builder perpship3_ob = client.hyperliquid.hip3.orderbook.get("xyz:XYZ100")print(f"HIP-3 XYZ100 mid price: {hip3_ob.mid_price}")
hip3_trades = client.hyperliquid.hip3.trades.recent("xyz:XYZ100", limit=10)print(f"Recent HIP-3 trades: {len(hip3_trades)}")
# Get trades with cursor paginationresult = client.hyperliquid.trades.list("ETH", start="2026-01-01", end="2026-01-02", limit=1000)trades = result.data
# Continue fetching all pageswhile result.next_cursor: result = client.hyperliquid.trades.list( "ETH", start="2026-01-01", end="2026-01-02", cursor=result.next_cursor, limit=1000 ) trades.extend(result.data)