My App

Get funding rate history

Get funding rate history data.

GET
/products/{product_id}/funding-rate-history
OBSIDIAN-KEY<token>

In: header

OBSIDIAN-SECRET<token>

In: header

Path Parameters

product_idstring

Identifier of the product (e.g., "BTC-PERP", "ETH-PERP") to retrieve funding rate history for.

Query Parameters

from?string

(Optional) Start timestamp (in nanoseconds) to filter results from, inclusive. Defaults to 24 hours before the 'to' timestamp.

Formatint64
to?string

(Optional) End timestamp (in nanoseconds) to filter results up to, exclusive. Defaults to the current time.

Formatint64
limit?string

(Optional) Maximum number of records to return per page. Default is 20.

Formatint64
page?string

(Optional) Page number for pagination. Default is 1.

Formatint64

Response Body

application/json

application/json

curl -X GET "https://api.dev.obsidian.exchange/products/string/funding-rate-history"
{
  "product_id": "string",
  "items": [
    {
      "time": "string",
      "rate": "string"
    }
  ],
  "paging": {
    "page": "string",
    "per_page": "string",
    "last_page": "string",
    "total": "string",
    "from": "string",
    "to": "string"
  }
}
{
  "code": 0,
  "message": "string",
  "details": [
    {
      "@type": "string",
      "property1": null,
      "property2": null
    }
  ]
}