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 freeActive order book bids and asks for a market.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
market_id | query | int | required | Market ID (0 = ETH). example: 0 |
limit | query | int | required | Max 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"