l2Book Info Endpoint Method
l2Book is not currently available through Quicknode's /info endpoint. This method is not part of the open-source Hyperliquid node.
Alternatives:
- Use HyperCore gRPC streaming with
StreamL2Bookfor real-time aggregated order book depth (gRPC-only stream) - Query order book snapshots through Hyperliquid's public API (subject to Hyperliquid rate limits)
Parameters
type
string
REQUIRED
Loading...
coin
string
REQUIRED
Loading...
nSigFigs
integer
Loading...
mantissa
integer
Loading...
Returns
coin
string
Loading...
time
integer
Loading...
levels
array
Loading...
bids
array
Loading...
px
string
Loading...
sz
string
Loading...
n
integer
Loading...
asks
array
Loading...
px
string
Loading...
sz
string
Loading...
n
integer
Loading...
Request
1curl https://api.hyperliquid.xyz/info \2-X POST \3-H "Content-Type: application/json" \4--data '{"type":"l2Book","coin":"BTC"}'5
1curl https://api.hyperliquid.xyz/info \2-X POST \3-H "Content-Type: application/json" \4--data '{"type":"l2Book","coin":"BTC"}'5
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free