/v1/hyperliquid/hip4/*. Use this family when the product needs binary outcome-market data, side-level order books, trades, candles, open interest, or probability-like mark and mid values. For coverage windows and history context, start with the HIP-4 historical data API page.
Discover an outcome first
Each outcome groups a Yes side and a No side. List them before you pull a book or trades:- An outcome groups two sides:
side0 is Yes (coin#0),side1 is No (coin#1). Use that sidecoin(URL-encoded, e.g.%230) for the order-book and trade routes. target_priceandexpirydefine the binary;is_settledandstatussay whether it resolved. Re-check those fields with/v1/hyperliquid/hip4/outcomes/{outcome_id}or/v1/hyperliquid/hip4/outcomes/by-slug/{slug}to see when an outcome settles.- Use
/v1/hyperliquid/hip4/questionsand/v1/hyperliquid/hip4/questions/{question_id}when the workflow starts from question metadata instead of an outcome side.
Request parameters
Outcome discovery (/v1/hyperliquid/hip4/outcomes):
The side-level order-book and trade routes take a HIP-4
coin id as {symbol} (e.g. %230 for the Yes side) plus the usual window and depth parameters.
Question discovery (/v1/hyperliquid/hip4/questions) uses the same bounded-list pattern as outcomes. Use /v1/hyperliquid/hip4/questions/{question_id} for one question, and /v1/hyperliquid/hip4/outcomes/by-slug/{slug} when the public question URL slug is the identifier you have.
Response fields
Each outcome in thedata array:
Each
side_specs entry has side (0 for Yes, 1 for No), name, coin (the #-prefixed id you pass as the symbol), and asset_id. The single-outcome route (/outcomes/{outcome_id}) also returns aggregated_oi with per-side open-interest contracts. HIP-4 order books and trades use the same fields as the core Order book and Trades schemas; only the symbol form differs, and mark_price and mid_price are implied probabilities in [0, 1], not USD.
Example
Use HIP-4 For
Stream it live
HIP-4 streams the side-level book and order events:hip4_orderbook, hip4_trades, hip4_open_interest, hip4_l4_diffs, and hip4_l4_orders. There is no HIP-4 funding, liquidation, or candle stream (only Lighter streams candles). Pass the outcome-side coin (URL-encoded, e.g. %230) as the symbol.
Export in bulk
HIP-4 side-level data exports under the standard schemas, delivered as Parquet with ZSTD compression:l2_orderbook ($6/GB, $10 minimum), l4_orderbook ($8/GB, $25 minimum), trades ($8/GB, $15 minimum), and oi ($1/GB, $5 minimum). Preserve the outcome and side context in every file. Build a selection in the Data catalog; columns and coverage keys are on Export schemas.
HIP-4 Request Checklist
Use this checklist before HIP-4 data enters charts, models, exports, or generated clients.Routing Rule
Store the outcome identifier and venue family with every record. Run outcome discovery before assuming an identifier, then pull the side-level order book, trades, candles, or open-interest route that matches the workflow. For historical analysis, combine the request with Data quality and request-ID logging so probability series can be audited later. Keep the URL encoding intact in examples such as%230, and never compare a mid_price against a dollar-denominated BTC, ETH, or Spot price.