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 free

Detailed market specifications, mark/last prices, 24h volume, OI, and margin parameters.

Parameters

nameintypedescription
market_idqueryintoptionalMarket ID (0 = ETH); omit for all.
example: 0
filterquerystroptionalOptional 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"