Lighter icon

Lighter

Interact with Lighter (zkLighter) DEX API - High-performance perpetuals trading

Market → Get Order Book Details

AI-generated

Summary

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

Links

Discussion