Skip to content

Get Historical Funding

Retrieves historical funding rates for a specific perpetual market.

Method Declaration

Python
async def get_perpetual_market_historical_funding(
    self,
    market: str,
    effective_before_or_at: Optional[str] = None,
    effective_before_or_at_height: Optional[int] = None,
    limit: Optional[int] = None,
) -> dict

Parameters

ParameterLocationTypeRequiredDescription
marketpathTickertrueThe market ticker.
limitqueryu32falseThe maximum number of funding rates to retrieve.
effectiveBeforeOrAtqueryDateTimefalseThe timestamp to retrieve funding rates effective before or at.
effectiveBeforeOrAtHeightqueryHeightfalseThe block height to retrieve funding rates effective before or at.

Response

StatusMeaningSchemaDescription
200OKHistoricalFundingResponseObject ⛁The historical funding rates data.
400Bad RequestThe request was malformed or invalid.
404Not FoundThe market was not found.

API Example