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
type | Scope | Rate | Content |
|---|---|---|---|
hl_bbo_optimistic | symbol | about 2,900 messages/s for all symbols | Expected best bid and ask after the next block, next to the current ones |
hl_mempool | symbol | about 2,600 messages/s for all symbols | Pending orders, cancels and modifies of one bundle for one symbol |
hl_block_proposal | exchange | about 13 messages/s | The next block as proposed: proposer, time, ordered bundle hashes |
hl_mempool_status | exchange | on change and every 5 s | Whether 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
| What | Result | When |
|---|---|---|
| Actions of a block that were in the mempool first | 100 % (20.7 M actions, 20,071 blocks) | 2026-11-23 |
| Mempool lead over the block being applied | median 221 ms (p10 187, p90 279) | 2026-11-23 |
| Proposal equals the block that followed | every one observed (over 1,700) | 2026-11-23, 11-25 |
| Proposal lead over its block | median 66–68 ms | 2026-11-23, 11-25 |
| Optimistic BBO, both sides exact 300 ms later, when a move was predicted | 50 % (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_l4andtrade_l4remain 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_statusreports it; checkflowingbefore 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.
| Field | Type | Meaning |
|---|---|---|
symbol_id | string | CoinAPI symbol |
coin | string | Hyperliquid coin |
time_exchange | time | When our node received the last bundle that went into the prediction |
time_coinapi | time | When it was calculated |
bid_price, bid_size | number | Expected best bid after the next block |
ask_price, ask_size | number | Expected best ask after the next block |
confirmed_bid_price, confirmed_bid_size | number | Best bid in the book now |
confirmed_ask_price, confirmed_ask_size | number | Best ask in the book now |
pending_instructions | integer | How 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_instructions0, 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.
| Field | Type | Meaning |
|---|---|---|
symbol_id | string | CoinAPI symbol, e.g. HYPERLIQUIDL4_PERP_BTC_USDC |
coin | string | Hyperliquid coin, e.g. BTC, xyz:TSLA, @107 |
time_exchange | time | When our node received the bundle. No exchange time exists before a block |
time_coinapi | time | When CoinAPI processed it |
bundle_hash | string | Hash of the bundle; the same on the messages of every symbol the bundle touches |
instructions | array | The symbol's instructions, in bundle order |
Instruction fields. A field that does not apply to the action is absent.
| Field | Type | Present on | Meaning |
|---|---|---|---|
index | integer | all | Position among the bundle's instructions across all symbols |
action | string | all | order, cancel, cancel_by_cloid or modify |
side | string | order, modify | B buy, A sell |
price | number | order, modify | Limit price |
size | number | order, modify | Size |
reduce_only | bool | order, modify | Reduce-only flag |
tif | string | order, modify | Alo, Ioc, Gtc, FrontendMarket, LiquidationMarket; absent on a trigger order |
trigger_kind | string | trigger orders | tp or sl |
trigger_price | number | trigger orders | Trigger price |
trigger_is_market | bool | trigger orders | Market order once triggered |
order_id | integer | cancel, modify | The order acted on, by exchange order id |
target_client_order_id | string | cancel_by_cloid, modify | The order acted on, by client order id |
client_order_id | string | order, modify | Client order id of the new order, when set |
nonce | integer | all | The sender's nonce (Unix ms) of the signed action |
signature_key | string | all | First 16 hex digits of the signature's r; joins the instruction to its confirmation in a block |
vault_address | string | when used | Vault or sub-account the action was sent for |
hl_block_proposal
One message per block. It arrives whenever blocks do, independent of the mempool.
| Field | Type | Meaning |
|---|---|---|
exchange_id | string | Always HYPERLIQUIDL4 |
time_exchange | time | The proposed block's own (consensus) time |
time_coinapi | time | When CoinAPI processed the proposal |
round | integer | Consensus round of the proposed block. Not the block height |
proposer | string | Address of the validator proposing it |
bundle_hashes | array of string | Bundles of the proposed block, in execution order. May be empty |
committed_round | integer | Round of the block committed just before it |
committed_time_exchange | time | That block's time |
committed_bundle_hashes | array of string | That block's bundles |
A value in bundle_hashes equals the bundle_hash of the hl_mempool messages of that bundle.
hl_mempool_status
| Field | Type | Meaning |
|---|---|---|
exchange_id | string | Always HYPERLIQUIDL4 |
flowing | bool | true: bundles are arriving. false: none are, and hl_mempool and hl_bbo_optimistic are silent for that reason |
time_since | time | Since when this state holds |
time_coinapi | time | When 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_mempooltohl_block_proposalbybundle_hash. - Join a pending instruction to its confirmation in a block by
signature_keyandnonce. - A
bundle_hashin a proposal with no matchinghl_mempoolmessage is normal for bundles that hold no order, cancel or modify.