Lighter Account Tool icon

Lighter Account Tool

Query Lighter account information - balance, positions, PnL, orders for AI agents

Lighter Account Tool

AI-generated

Summary

Query Lighter DEX account data via AI tool output.

Inputs

  • action (required) — The action to perform
  • accountIndex — Account index to query; defaults to credential accountIndex
  • marketIndex — Market index for filtering (0=BTC, 1=ETH, etc.)

Output shape

JSON string formatted per the selected action: account data, positions, active orders, limits, or PnL history.

The node returns a LangChain DynamicStructuredTool instance; invoked via n8n's AI Agent or similar.

Examples

Example 1: Default

Default operation uses credential 'lighterApi' and outputs an AI-configured tool with no additional workflow-level parameters beyond the tool's internal schema.

Links

Discussion