Funding Rate

Get Funding Rate History

Get the historical funding rates for a market. For how funding is calculated and applied, see Funding rates.

get/v1/perps/funding_rate_history

Request

  • Base URL
    https://api.ondoperps.xyz
  • URL
    https://api.ondoperps.xyz/v1/perps/funding_rate_history
  • Auth
    none required

Query parameters

marketstring required
Example:AAPL-USD.P

Perps trading market

limitinteger
Example:1000

Maximum number of results to return

cursorstring
Example:NQ5WWO3THN3Q====

Pagination cursor

startTimeinteger
Example:1684814400000

Start time filter (UTC milliseconds)

endTimeinteger
Example:1672549200000

End time filter (UTC milliseconds)

Response

Paginated list of historical funding rates, most recent first

successboolean required

Whether the request was successful

errorstring

Error message, present only on failure

error_codestring

Semantic error code. See each endpoint's error responses for the specific codes it can return.

deprecatedstring

Deprecation notice, if applicable

Example response

{
  "success": true,
  "result": [
    {
      "market": "AAPL-USD.P",
      "time": "2022-06-16T12:35:10.123456Z",
      "fundingRate": "0.0000125"
    }
  ],
  "pageInfo": {
    "prevCursor": "O4ZTGM3RGM2DG===",
    "nextCursor": "NQ5WWO3THN3Q===="
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.