Lighter icon

Lighter

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

Order → Get Inactive Orders

AI-generated

Summary

Fetch account inactive orders from the Lighter API

Inputs

  • orderAccountIndex — The account index to query orders for
  • orderMarketIndex — Filter by market index; -1 returns orders from all markets

Output shape

JSON response containing inactive order data from the Lighter API

Returned data is pushed as a JSON paired item per input batch

Examples

Example 1: Get inactive orders for a specific account and market

Set orderAccountIndex to the desired account index and orderMarketIndex to a specific market index (or -1 for all markets)

Links

Discussion