SDK REST Usage

Begin with one client, one key, and one request that matches the REST reference.

Pattern
One client, one key, one request
Coverage
REST routes with typed helpers

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 oxarchive
from oxarchive import Client
client = Client(api_key="0xa_your_api_key")
# Hyperliquid data
hl_orderbook = client.hyperliquid.orderbook.get("BTC")
print(f"Hyperliquid BTC mid price: {hl_orderbook.mid_price}")
# Lighter.xyz data
lighter_orderbook = client.lighter.orderbook.get("BTC")
print(f"Lighter BTC mid price: {lighter_orderbook.mid_price}")
# HIP-3 builder perps
hip3_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 pagination
result = client.hyperliquid.trades.list("ETH", start="2026-01-01", end="2026-01-02", limit=1000)
trades = result.data
# Continue fetching all pages
while 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)

The published SDKs also expose data-quality monitoring and wallet/web3 helpers. Use Agentic Gateway when the integration needs SIWE signup or x402 upgrades.

Where to take the SDK next