Lighter icon

Lighter

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

Position → Get Positions

AI-generated

Summary

Fetch open positions from the Lighter trading backend

Inputs

None.

Output shape

JSON array of position objects returned by the backend

Each input item produces one paired output item with the backend response JSON

Examples

Example 1: Retrieve all open positions for the configured backend

Set Resource to Position, Operation to Get Positions, and configure a lighterApi credential with a tradingBackendUrl (mainnet or testnet). The node will GET /api/positions from the selected environment and return the position data.

Links

Discussion