Schema Source
OpenAPI, Endpoint Reference, and Operation Schemas define REST requests and responses. Schema pages are refreshed fromopenapi.json so builders can browse component schemas, operation schemas, and route families without treating examples as complete coverage. Examples help with parser expectations, but client types should still come from the schema pages.
Component schemas
Browse every generated OpenAPI component schema.
Operation schemas
Open route-level request and response JSON Schema pages.
Hyperliquid core schemas
Review generated Hyperliquid core operation contracts.
Hyperliquid Spot schemas
Review generated Spot operation contracts.
HIP-3 schemas
Review generated HIP-3 operation contracts.
HIP-4 schemas
Review generated HIP-4 operation contracts.
Lighter schemas
Review generated Lighter operation contracts.
Data quality schemas
Review generated status, coverage, and quality contracts.
Export manifest schemas
Browse generator-backed Data Catalog export manifest schemas.
WebSocket messages
See the generated bridge to the current WebSocket command inventory.
Envelope
true for successful responses. Error responses use success: false.Route payload. Historical list routes usually return arrays, while market-state routes often return objects.
Number of returned items.
Cursor for the next page when a paginated historical route has more results.
Identifier to log for debugging and support.
Schema Families
| Family | Schema intent | Example routes |
|---|---|---|
| Instruments and pairs | Market discovery and symbol metadata | /v1/hyperliquid/instruments, /v1/hyperliquid/spot/pairs, /v1/lighter/instruments |
| Order books | Bids, asks, timestamps, spread, depth, and route-specific order-book records | /orderbook/{symbol}, L3, L4, and history routes |
| Trades | Side, price, size, timestamp, and source-specific fields | /trades/{symbol} and recent trade routes |
| Candles | OHLC-style time buckets | /candles/{symbol} |
| Funding and open interest | Timestamped funding, premium, mark/mid context, and OI values | /v1/hyperliquid/funding/{symbol}, /v1/hyperliquid/openinterest/{symbol}, and venue-specific equivalents |
| Liquidations and orders | Liquidation events, order history, flow, and TPSL records | Liquidation and order routes where available |
| Spot TWAP | Hyperliquid Spot TWAP records | /v1/hyperliquid/spot/twap/{symbol} |
| Data quality | Coverage, status, incidents, latency, and SLA records | /v1/data-quality/* |
| SIWE verification | SIWE challenge, signup, key, revoke, and subscribe responses | /v1/auth/web3/challenge, /v1/web3/signup, /v1/web3/keys |
| Export datasets | Parquet schema keys, coverage keys, rough columns, pricing units, and file-delivery metadata | Data Catalog export schemas |
Client Schema Checklist
Use this checklist before generating types, warehouse tables, or agent parser instructions.| Schema decision | Public rule |
|---|---|
| Route-specific type | Start from Endpoint reference, OpenAPI, or route-level pages in Operation schemas. |
| Shared envelope | Apply success, data, meta.count, meta.next_cursor, and meta.request_id handling consistently. |
| Empty result state | Model success: true with an empty array separately from transport failure, auth failure, and missing-route errors. |
| Venue-specific fields | Keep Spot pairs, HIP-3 prefixes, HIP-4 outcome identifiers, and Lighter symbols distinct. |
| Decimal values | Treat prices, sizes, rates, spreads, open interest, and probability-like fields as decimal-sensitive. |
| High-depth books | Keep L2 snapshots, L3 individual orders, L4 book state, and L4 order events as separate schemas. |
| Export files | Use Export schemas; do not reuse JSON response schemas as Parquet table contracts without source metadata. |
Market Fields
Order books
Order books
Order-book payloads include bids, asks, timestamps, mid price, spread, and venue-specific depth fields. L3 and L4 records should be stored separately from ordinary L2 snapshots.
Trades
Trades
Trade payloads include side, price, size, timestamp, and route-specific fields such as wallet/account identifiers where the source supports them.
Funding and open interest
Funding and open interest
Funding and OI payloads include timestamped rate, premium, mark, mid, and open-interest fields depending on venue family.
HIP-4 prices
HIP-4 prices
HIP-4
mark_price and mid_price represent implied probability in [0, 1], not USD.Data quality records
Data quality records
Coverage, latency, freshness, incident, and SLA payloads are trust signals. A client should compare them to the job tolerance before downstream systems use market data.
Schema Use In Clients
Generated endpoint pages are the source for route-specific schemas. Use this page for shared behavior that should appear in every client: success handling, pagination metadata, request IDs, timestamp parsing, and error propagation. Keep numeric-looking market fields as strings unless the route schema or generated type states otherwise. Prices, sizes, spreads, rates, and open-interest values often need decimal-safe handling. Convert them at the application edge with a decimal library instead of relying on floating-point defaults in strategy, accounting, or model code.Export Schemas Versus API Schemas
API schemas describe JSON responses from REST and WebSocket surfaces. Export schemas describe file-style Parquet datasets from the Data Catalog. Keep those models separate. An API order-book response, an L2 export, an L3 export, an L4 order-book export, and an order-events export can all represent order-book-adjacent data, but they should not share one warehouse schema without preserving source and schema key. Use Export schemas for schema keys such asl2_orderbook, l3_orderbook, l4_orderbook, l4_orders, trades, funding, oi, and liquidations.
Venue-Specific Meaning
The same field name can mean different things by venue family. HIP-4 prices are probabilities, not USD prices. Spot symbols are pairs such asHYPE-USDC. HIP-3 symbols can include a builder prefix such as km:US500. Lighter routes live under their own namespace. Preserve the venue family in stored records so downstream joins do not treat unrelated symbols as the same instrument.
Examples And Responses
Examples show route family, auth, request IDs, bounded scope, and schema-backed payload shapes. Client code should still parse from the schema pages. Response handling should check HTTP status,success, error.code, pagination metadata, and meta.request_id.
REST API
Open endpoint-specific schemas.
Errors
Handle error responses and request IDs.
Responses
Parse envelopes, pagination, errors, and decimal-sensitive fields.
Example responses
Review schema-backed JSON examples before writing parsers or tests.
Examples
Copy bounded request, parser, WebSocket, and agent examples.
Export schemas
Choose Parquet export datasets and preserve schema keys.