# l2Book

## POST /info

> Request L2 order book.

```json
{"openapi":"3.1.1","info":{"title":"Hyperliquid API - info/l2Book","version":"1.0.0"},"tags":[{"name":"l2Book"}],"servers":[{"url":"https://api.hyperliquid.xyz","description":"Mainnet"},{"url":"https://api.hyperliquid-testnet.xyz","description":"Testnet"}],"paths":{"/info":{"post":{"tags":["l2Book"],"description":"Request L2 order book.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"description":"Type of request.","enum":["l2Book"]},"coin":{"type":"string","description":"Asset symbol (e.g., BTC)."},"nSigFigs":{"anyOf":[{"enum":[2,3,4,5],"nullable":true}],"description":"Number of significant figures."},"mantissa":{"anyOf":[{"enum":[2,5],"nullable":true}],"description":"Mantissa for aggregation (if `nSigFigs` is 5)."}},"required":["type","coin"],"description":"Request L2 order book."}}},"required":true},"responses":{"200":{"description":"L2 order book snapshot or `null` if the market does not exist.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"coin":{"type":"string","description":"Asset symbol."},"time":{"type":"integer","minimum":0,"description":"Timestamp of the snapshot (in ms since epoch)."},"levels":{"type":"array","items":[{"type":"array","items":{"type":"object","properties":{"px":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$","description":"Price."},"sz":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$","description":"Total size."},"n":{"type":"integer","minimum":0,"description":"Number of individual orders."}},"required":["px","sz","n"],"description":"L2 order book level."}},{"type":"array","items":{"type":"object","properties":{"px":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$","description":"Price."},"sz":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$","description":"Total size."},"n":{"type":"integer","minimum":0,"description":"Number of individual orders."}},"required":["px","sz","n"],"description":"L2 order book level."}}],"minItems":2,"description":"Bid and ask levels (index 0 = bids, index 1 = asks)."}},"required":["coin","time","levels"],"nullable":true}],"description":"L2 order book snapshot or `null` if the market does not exist."}}}},"422":{"description":"Failed to deserialize the JSON body into the target type","content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"null"}}}}}}}}}
```
