Lighter icon

Lighter

Interact with Lighter (zkLighter) DEX API - High-performance perpetuals trading

Market → Get Fundings

AI-generated

Summary

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

Links

Discussion