GET /api/v1/orderBookOrders

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/lighter/api/v1/orderBookOrdersCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Active order book bids and asks for a market.

Parameters

nameintypedescription
market_idqueryintrequiredMarket ID (0 = ETH).
example: 0
limitqueryintrequiredMax orders per side (1..250).
example: 5

Response

type: object
data key: asks
pagination: none
sample: {
  "code": "int",
  "total_asks": "int",
  "asks": "array[5]",
  "total_bids": "int",
  "bids": "array[5]"
}

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/orderBookOrders?market_id=0&limit=5"