Actions46
- Account Actions
- Market Actions
- Order Actions
- Position Actions
- Trade Actions
- Trading Actions
- Transaction Actions
- System Actions
Market → Get Order Book Details
AI-generatedSummary
Fetch order book details for a specified market from the Lighter API
Inputs
- marketIndex (required) — The market index (0 = ETH-USD, etc.)
- depth — Order book depth
Output shape
object
JSON response from GET /api/v1/orderBookDetails, containing order book details filtered by market_id and depth query parameters
Examples
Example 1: Get order book for ETH-USD market with default depth
marketIndex: 0, depth: 20