l2Book
post
/info
Request L2 order book.
Body
Request L2 order book.
typeundefined · enumRequiredPossible values:
Type of request.
coinstringRequired
Asset symbol (e.g., BTC).
nSigFigsany ofOptional
Number of significant figures.
undefined · enumOptionalPossible values:
undefined · enumOptionalPossible values:
undefined · enumOptionalPossible values:
undefined · enumOptionalPossible values:
mantissaany ofOptional
Mantissa for aggregation (if nSigFigs is 5).
undefined · enumOptionalPossible values:
undefined · enumOptionalPossible values:
Responses
200
L2 order book snapshot or null if the market does not exist.
application/json
Responseany of
L2 order book snapshot or null if the market does not exist.
422
Failed to deserialize the JSON body into the target type
text/plain
500
Internal Server Error
application/json
post
/infoPOST /info HTTP/1.1
Host: api.hyperliquid.xyz
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"type": "l2Book",
"coin": "text",
"nSigFigs": 2,
"mantissa": 2
}{
"coin": "text",
"time": 1,
"levels": []
}Last updated