Skip to main content
Call 0xArchive REST routes from TypeScript, Python, or Rust through the SDK clients. Each client wraps the routes in the Endpoint reference and keeps the venue family in the method path, so a Hyperliquid call never turns into a Lighter call by accident.
If a method name differs in your installed version, follow that package’s README and types; the REST reference stays the route contract.

Client namespaces

Across families, SDK 1.12.0 and later also include:
  • Account positions: positions on the Hyperliquid, HIP-3, Lighter, and Robinhood Chain clients, plus accounts.by_l1 (TypeScript accounts.byL1) on Lighter mainnet. See Account positions.
  • Webhooks: client.webhooks for endpoints, subscriptions, estimate and dry-run previews, watched addresses, and the delivery log, plus a signature verifier. See Webhook routes.
  • Market analytics: cvd and breadth on the Hyperliquid and HIP-3 clients, oracle on HIP-3, wallets.classify on Hyperliquid and HIP-3, questions on HIP-4, and a top-level symbols.
Keep the family visible in your own wrappers too: a generic getOrderbook(symbol) helper should still name the venue family in its configuration or signature.

REST fallback

Call a route directly when you need its exact shape or your runtime has no SDK. Use the same key, response handling, request-ID logging, and data-quality checks as SDK code.
Direct REST

Keep request IDs and errors

Market-data responses carry success, data, and meta: lists add meta.count, paged routes add meta.has_more and meta.next_cursor, and each response has a meta.request_id. When an SDK unwraps data, keep the metadata alongside the result so retries, logs, and support requests still have the request ID.
On a failure, keep the HTTP status, the API’s error_code (errorCode in TypeScript), and the request ID with the failed job. If your wrapper hides metadata, add a logging hook so production callers can still recover the request ID.

Page through history

Fix the window once, then follow the returned cursor with the same bounds and a page budget. See REST pagination. This window, the hour that ended one hour ago, is inside every plan’s history, including Free’s most recent 30 days.
Store the request path, parameters, each cursor, and each request ID with the output. Confirm one window’s schema, data quality, and rate behavior before widening across symbols, and pair large pulls with Data quality and Rate limits. For a large file export or warehouse load, use the Data Catalog instead.

Next step

Stream and replay from the same SDKs with SDK WebSocket usage.
Last modified on October 6, 2026