GET
/
node
/
v1
/
funding_rates
/
history
/
{base}
/
{quote}
curl --request GET \
  --url https://{environment}.pragma.build/node/v1/funding_rates/history/{base}/{quote}
{
  "has_next_page": true,
  "page": 123,
  "page_size": 123,
  "data": [
    {
      "hourly_rate": 123,
      "pair": "<string>",
      "source": "<string>",
      "timestamp_ms": 1
    }
  ]
}

Path Parameters

base
string
required

Base asset symbol (e.g., BTC)

quote
string
required

Quote asset symbol (e.g., USD)

Query Parameters

source
string
required
timestamp
string
required

Represents a range of timestamps

frequency
enum<string>

Frequency of data points (all, minute, hour). Defaults to 'all'

Available options:
All,
Minute,
Hour
page
integer

Page number (1-based)

page_size
integer

Number of items per page (1-1000)

pagination
object
required

Pagination parameters

Response

200 - application/json

Successfully retrieved historical funding rates with pagination

Common pagination response fields that can be included in API responses