Lighter icon

Lighter

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

Account → Get Liquidations

AI-generated

Summary

Fetch liquidation history for an account

Inputs

  • accountIndex — The account index to query liquidations for; defaults to 0 if omitted

Output shape

JSON array of liquidation records returned by the Lighter API

Each item corresponds to one workflow execution item; the node returns the parsed API response body as JSON

Examples

Example 1: Get liquidations for the default account (index 0)

Leave accountIndex at its default value; the node will request liquidation history for account index 0 from the Lighter mainnet or testnet endpoint based on credential settings.

Links

Discussion