Actions46
- Account Actions
- Market Actions
- Order Actions
- Position Actions
- Trade Actions
- Trading Actions
- Transaction Actions
- System Actions
Market → Get Order Book Orders
AI-generatedSummary
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