Actions46
- Account Actions
- Market Actions
- Order Actions
- Position Actions
- Trade Actions
- Trading Actions
- Transaction Actions
- System Actions
Account → Get PnL
AI-generatedSummary
Fetch PnL chart data for a Lighter account
Inputs
- accountIndex — The account index to query PnL for; defaults to 0
- pnlResolution — Time resolution for the PnL data; defaults to 1h, options are 1h and 1d
- pnlCountBack — Number of periods to return back from the end timestamp; defaults to 24
- pnlStartTime — Start time for PnL data; if left empty, the start timestamp defaults to 24 hours before the end timestamp
- pnlEndTime — End time for PnL data; if left empty, the end timestamp defaults to the current time
Output shape
JSON response from the Lighter API's /api/v1/pnl endpoint, containing PnL values indexed by the specified resolution and time range
The operation constructs query parameters (by=index, value=accountIndex, resolution, count_back, start_timestamp, end_timestamp) and performs a GET request. All parameter defaults and optional behavior are as declared in the node's properties and source implementation.