Actions46
- Account Actions
- Market Actions
- Order Actions
- Position Actions
- Trade Actions
- Trading Actions
- Transaction Actions
- System Actions
Order → Get Active Orders
AI-generatedSummary
Retrieve active orders for a specified account from the Lighter API.
Inputs
- orderAccountIndex — The account index whose active orders to retrieve. Maps to the account_index query parameter (default: 0).
- orderMarketIndex — Filter active orders by market index. Use -1 (default) to retrieve orders from all markets; specify a numeric index to filter to a specific market. Maps to the market_id query parameter when >= 0.
Output shape
JSON array of active order objects from the Lighter API endpoint /api/v1/accountActiveOrders.
Each workflow item's data is replaced with the parsed JSON response; errors are handled per the node's continueOnFail setting.
Examples
Example 1: Get all active orders for account index 0 across all markets.
Leave orderAccountIndex at default (0) and orderMarketIndex at default (-1).
Example 2: Get active orders for account index 2 limited to market index 1 (e.g., BTC-USD).
Set orderAccountIndex to 2 and orderMarketIndex to 1.