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,
) -> dictParameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
market | path | Ticker | true | The market ticker. |
limit | query | u32 | false | The maximum number of funding rates to retrieve. |
effectiveBeforeOrAt | query | DateTime | false | The timestamp to retrieve funding rates effective before or at. |
effectiveBeforeOrAtHeight | query | Height | false | The block height to retrieve funding rates effective before or at. |
Response
| Status | Meaning | Schema | Description |
|---|---|---|---|
200 | OK | HistoricalFundingResponseObject ⛁ | The historical funding rates data. |
400 | Bad Request | The request was malformed or invalid. | |
404 | Not Found | The market was not found. |
API Example