l2Book

post
/info

Request L2 order book.

Body

Request L2 order book.

typeundefined · enumRequired

Type of request.

Possible values:
coinstringRequired

Asset symbol (e.g., BTC).

nSigFigsany ofOptional

Number of significant figures.

undefined · enumOptionalPossible values:
or
undefined · enumOptionalPossible values:
or
undefined · enumOptionalPossible values:
or
undefined · enumOptionalPossible values:
mantissaany ofOptional

Mantissa for aggregation (if nSigFigs is 5).

undefined · enumOptionalPossible values:
or
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.

post
/info
POST /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