Actions46
- Account Actions
- Market Actions
- Order Actions
- Position Actions
- Trade Actions
- Trading Actions
- Transaction Actions
- System Actions
Trade → Get Recent Trades
AI-generatedSummary
Fetch recent trades for a market
Inputs
- tradeMarketIndex — The market index (0 = ETH-USD, etc.)
- tradeLimit — Maximum number of trades to return
Output shape
Array of trade objects returned from the Lighter API endpoint /api/v1/recentTrades
Each item is pushed as
jsonpaired data; no auth token is required for the request itself beyond thelighterApicredentials for base URL selection.
Examples
Example 1: Retrieve the 50 most recent trades for the default market
Set tradeMarketIndex to 0 (default) and tradeLimit to 50