HyperStream

Coming soon - Hyperliquid's mempool applied to a live L4 order book, publishing the best bid and ask expected after the next block.

HyperStream

Coming soon. HyperStream is not available yet, and the messages below may change before launch.

Hyperliquid's mempool turned into a trading signal. Our node sees an order a median 221 ms before the block that contains it is applied. HyperStream applies the pending orders, cancels and modifies to our live L4 order book, and publishes the best bid and ask each symbol should have after the next block, before that block arrives.

HyperStream is delivered on the Hyperliquid L4 WebSocket (wss://hyperliquidl4.ws-ds.md.coinapi.io/), next to book_l4 and trade_l4, with the same hello subscription and symbol filters.

Messages

typeScopeRateContent
hl_bbo_optimisticsymbolabout 2,900 messages/s for all symbolsExpected best bid and ask after the next block, next to the current ones
hl_mempoolsymbolabout 2,600 messages/s for all symbolsPending orders, cancels and modifies of one bundle for one symbol
hl_block_proposalexchangeabout 13 messages/sThe next block as proposed: proposer, time, ordered bundle hashes
hl_mempool_statusexchangeon change and every 5 sWhether the mempool is being received now

Scope "symbol" types honour subscribe_filter_symbol_id; scope "exchange" types are delivered to every subscriber. All times are ISO 8601 UTC with seven fractional digits.

{"type": "hello", "subscribe_data_type": ["hl_bbo_optimistic", "hl_mempool_status"], "subscribe_filter_symbol_id": ["HYPERLIQUIDL4_PERP_BTC_USDC"]}

Measured on live data

WhatResultWhen
Actions of a block that were in the mempool first100 % (20.7 M actions, 20,071 blocks)2026-11-23
Mempool lead over the block being appliedmedian 221 ms (p10 187, p90 279)2026-11-23
Proposal equals the block that followedevery one observed (over 1,700)2026-11-23, 11-25
Proposal lead over its blockmedian 66–68 ms2026-11-23, 11-25
Optimistic BBO, both sides exact 300 ms later, when a move was predicted50 % (assuming "no change": 10 %)2026-11-25

Lead times are measured at our node in Tokyo; network latency to the client comes on top.

What it is not

  • A prediction, not a fact. An instruction may be rejected (margin, reduce-only), reordered or never included. book_l4 and trade_l4 remain the record of what happened.
  • The source can stop. A non-validating node receives the mempool only while its upstream peer forwards it. hl_mempool_status reports it; check flowing before concluding that a market is quiet.
  • No history, no replay. A message that was not delivered is gone.

hl_bbo_optimistic

The pending instructions are applied to the top of the L4 book: cancels remove an order, post-only orders rest, other orders take the opposite side up to their limit price.

FieldTypeMeaning
symbol_idstringCoinAPI symbol
coinstringHyperliquid coin
time_exchangetimeWhen our node received the last bundle that went into the prediction
time_coinapitimeWhen it was calculated
bid_price, bid_sizenumberExpected best bid after the next block
ask_price, ask_sizenumberExpected best ask after the next block
confirmed_bid_price, confirmed_bid_sizenumberBest bid in the book now
confirmed_ask_price, confirmed_ask_sizenumberBest ask in the book now
pending_instructionsintegerHow many pending instructions changed the top of the book in the prediction
  • A price is absent when that side is empty, or when the pending instructions empty every level looked at (the ten best levels of a side).
  • Messages are sent for a symbol only while pending instructions touch the top of its book, and whenever a value changes. The last message of such a run has pending_instructions 0, and then the expected values equal the confirmed ones.
  • Pending instructions are applied in the proposed block's order when the proposal is known, otherwise in arrival order.
{"type":"hl_bbo_optimistic","symbol_id":"HYPERLIQUIDL4_PERP_BTC_USDC","coin":"BTC","time_exchange":"2026-11-24T12:00:00.1230000Z","time_coinapi":"2026-11-24T12:00:00.1250000Z","bid_price":61287,"bid_size":0.42,"ask_price":61289,"ask_size":2.5,"confirmed_bid_price":61286,"confirmed_bid_size":0.9,"confirmed_ask_price":61288,"confirmed_ask_size":1.1,"pending_instructions":2}

hl_mempool

One message carries the instructions of one bundle for one symbol. An update more than 10 seconds old is not sent.

FieldTypeMeaning
symbol_idstringCoinAPI symbol, e.g. HYPERLIQUIDL4_PERP_BTC_USDC
coinstringHyperliquid coin, e.g. BTC, xyz:TSLA, @107
time_exchangetimeWhen our node received the bundle. No exchange time exists before a block
time_coinapitimeWhen CoinAPI processed it
bundle_hashstringHash of the bundle; the same on the messages of every symbol the bundle touches
instructionsarrayThe symbol's instructions, in bundle order

Instruction fields. A field that does not apply to the action is absent.

FieldTypePresent onMeaning
indexintegerallPosition among the bundle's instructions across all symbols
actionstringallorder, cancel, cancel_by_cloid or modify
sidestringorder, modifyB buy, A sell
pricenumberorder, modifyLimit price
sizenumberorder, modifySize
reduce_onlyboolorder, modifyReduce-only flag
tifstringorder, modifyAlo, Ioc, Gtc, FrontendMarket, LiquidationMarket; absent on a trigger order
trigger_kindstringtrigger orderstp or sl
trigger_pricenumbertrigger ordersTrigger price
trigger_is_marketbooltrigger ordersMarket order once triggered
order_idintegercancel, modifyThe order acted on, by exchange order id
target_client_order_idstringcancel_by_cloid, modifyThe order acted on, by client order id
client_order_idstringorder, modifyClient order id of the new order, when set
nonceintegerallThe sender's nonce (Unix ms) of the signed action
signature_keystringallFirst 16 hex digits of the signature's r; joins the instruction to its confirmation in a block
vault_addressstringwhen usedVault or sub-account the action was sent for

hl_block_proposal

One message per block. It arrives whenever blocks do, independent of the mempool.

FieldTypeMeaning
exchange_idstringAlways HYPERLIQUIDL4
time_exchangetimeThe proposed block's own (consensus) time
time_coinapitimeWhen CoinAPI processed the proposal
roundintegerConsensus round of the proposed block. Not the block height
proposerstringAddress of the validator proposing it
bundle_hashesarray of stringBundles of the proposed block, in execution order. May be empty
committed_roundintegerRound of the block committed just before it
committed_time_exchangetimeThat block's time
committed_bundle_hashesarray of stringThat block's bundles

A value in bundle_hashes equals the bundle_hash of the hl_mempool messages of that bundle.

hl_mempool_status

FieldTypeMeaning
exchange_idstringAlways HYPERLIQUIDL4
flowingbooltrue: bundles are arriving. false: none are, and hl_mempool and hl_bbo_optimistic are silent for that reason
time_sincetimeSince when this state holds
time_coinapitimeWhen the state was reported

Sent when the state changes and repeated every 5 seconds. If no status arrives for 30 seconds, treat the source as down whatever the last one said.

How the messages fit together

bundle arrives in mempool ──► proposal names the bundles of the next block ──► block is applied
   hl_mempool                    hl_block_proposal                              book_l4, trade_l4
   (about 220 ms before)         (about 66 ms before)                           (the fact)

   hl_bbo_optimistic = current book + pending hl_mempool instructions,
                       ordered by hl_block_proposal when available
  • Join hl_mempool to hl_block_proposal by bundle_hash.
  • Join a pending instruction to its confirmation in a block by signature_key and nonce.
  • A bundle_hash in a proposal with no matching hl_mempool message is normal for bundles that hold no order, cancel or modify.