GET /api/v1/orderBookDetails
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/lighter/api/v1/orderBookDetailsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeDetailed market specifications, mark/last prices, 24h volume, OI, and margin parameters.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
market_id | query | int | optional | Market ID (0 = ETH); omit for all. example: 0 |
filter | query | str | optional | Optional filter (all, perp, spot). |
Response
type: object
data key: order_book_details
pagination: none
sample: {
"code": "int",
"order_book_details": "array[1]",
"spot_order_book_details": "array[0]"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/lighter/api/v1/orderBookDetails?market_id=0"