/hypercore JSON-RPC methods requires a Build plan or higher. View pricing to upgrade. For complete stream type definitions and filtering options, see the datasets documentation.Parameters
- streamstringREQUIRED
The stream type to query (trades, orders, events, book, twap, writer_actions)
- countintegerREQUIRED
Number of latest blocks to retrieve
Returns
- resultobject
Result payload containing the latest blocks
- blocksarray
Array of block objects from the specified stream
- local_timestring
Local server timestamp in ISO 8601 format
- block_timestring
Block timestamp in ISO 8601 format
- block_numberinteger
Block number on the Hyperliquid chain
- eventsarray
List of events in this block; each event is a 2-item tuple of [address, payload]
- addressstring
Event address as a 0x-prefixed hex string
- objectobject
Event payload data object which contains the following fields:
- coinstring
Instrument symbol (e.g., ETH, BTC, PAXG, xyz:AMZN, hyna:ZEC, @142)
- pxstring
Execution price as a stringified number
- szstring
Execution size/quantity as a stringified number
- sidestring
Trade side indicator (e.g., B or A)
- timeinteger
Event timestamp in milliseconds since Unix epoch
- startPositionstring
Position size before the event as a stringified number
- dirstring
Action direction describing the position change (e.g., Open Long, Open Short, Close Long, Close Short, Buy, Sell)
- closedPnlstring
Realized PnL from this event as a stringified number
- hashstring
Transaction hash as a 0x-prefixed hex string
- oidinteger
Order identifier
- crossedboolean
Whether the order crossed the book
- feestring
Fee amount as a stringified number (can be negative depending on rebates)
- tidinteger
Trade identifier
- feeTokenstring
Token symbol used for fees (e.g., USDC, USDE)
- twapIdinteger|null
TWAP identifier if the event is associated with a TWAP; otherwise null
- cloidstring
Client order identifier
- builderFeestring
Builder fee amount as a stringified number
- builderstring
Builder address as a 0x-prefixed hex string