Actions46
- Account Actions
- Market Actions
- Order Actions
- Position Actions
- Trade Actions
- Trading Actions
- Transaction Actions
- System Actions
Market → Get Fundings
AI-generatedSummary
Retrieve funding rates history for the specified market.
Inputs
- marketIndex — The market index (0 = ETH-USD, etc.)
- fundingResolution — Time resolution for funding data
- fundingCountBack — Number of periods to return (from now backwards)
- fundingStartTime — Start time for funding data (leave empty for 24h ago)
- fundingEndTime — End time for funding data (leave empty for now)
Output shape
JSON array of funding rate records from the Lighter API
Returns the raw API response; error handling via continueOnFail or node error.
Examples
Example 1: Fetch last 24h of 1h-resolution funding data for market index 0
marketIndex=0, fundingResolution=1h, fundingCountBack=24, fundingStartTime empty, fundingEndTime empty