Lighter icon

Lighter

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

Market → Get Order Book Orders

AI-generated

Summary

Fetch order book orders for a given market index from the Lighter DEX API via GET /api/v1/orderBookOrders?market_id={marketIndex}&limit={depth}

Inputs

  • marketIndex — The market index (0 = ETH-USD, etc.)

Output shape

json

Returns JSON response from the Lighter DEX API containing order book orders data

Examples

Example 1: Basic usage with defaults

marketIndex: 0 (default), depth: 20 (default)

Example 2: Custom market index and depth

marketIndex: 1, depth: 50

Links

Discussion