Get Perpetual Market Funding Rate
curl --request GET \
--url https://api.blockworks.com/query/tabular/perpetual-market-funding-rates/{perpetualMarketID} \
--header 'X-Blockworks-API-Key: <api-key>'import requests
url = "https://api.blockworks.com/query/tabular/perpetual-market-funding-rates/{perpetualMarketID}"
headers = {"X-Blockworks-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Blockworks-API-Key': '<api-key>'}};
fetch('https://api.blockworks.com/query/tabular/perpetual-market-funding-rates/{perpetualMarketID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.blockworks.com/query/tabular/perpetual-market-funding-rates/{perpetualMarketID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Blockworks-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.blockworks.com/query/tabular/perpetual-market-funding-rates/{perpetualMarketID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Blockworks-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.blockworks.com/query/tabular/perpetual-market-funding-rates/{perpetualMarketID}")
.header("X-Blockworks-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blockworks.com/query/tabular/perpetual-market-funding-rates/{perpetualMarketID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Blockworks-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"baseAsset": "<baseAsset>",
"baseAssetID": "<baseAssetID>",
"baseAssetName": "<baseAssetName>",
"baseAssetSerialID": 123,
"baseAssetSlug": "<baseAssetSlug>",
"baseAssetSymbol": "<baseAssetSymbol>",
"exchange": "<exchange>",
"exchangeID": "<exchangeID>",
"exchangeName": "<exchangeName>",
"exchangeSerialID": 123,
"exchangeSlug": "<exchangeSlug>",
"exchangeSub": "<exchangeSub>",
"intervalHours": 123,
"name": "<name>",
"perpetualMarketID": "<perpetualMarketID>",
"symbol": "<symbol>"
},
"error": null,
"metadata": {
"matchedField": "perpetualMarketID"
}
}{
"data": null,
"error": "unknown selection field \"nope\""
}{
"data": null,
"error": "this model requires authentication"
}{
"data": null,
"error": "this model requires the \"derivatives-dataset\" permission; see https://app.blockworks.com/account/api for the public API permissions you hold"
}{
"data": null,
"error": "no row found matching \"unknown\""
}Perpetual Market Funding Rates
Get Perpetual Market Funding Rate
One row per perpetual futures contract that reports a funding rate, across centralized exchanges and Hyperliquid, keyed by exchange and contract symbol: exchange, sub-venue, symbol, base asset and the contract’s latest settlement interval. The id is the series key of the perpetual-market-funding-rates timeseries model, and matches the perpetual-markets id for the same contract.
GET
/
query
/
tabular
/
perpetual-market-funding-rates
/
{perpetualMarketID}
Get Perpetual Market Funding Rate
curl --request GET \
--url https://api.blockworks.com/query/tabular/perpetual-market-funding-rates/{perpetualMarketID} \
--header 'X-Blockworks-API-Key: <api-key>'import requests
url = "https://api.blockworks.com/query/tabular/perpetual-market-funding-rates/{perpetualMarketID}"
headers = {"X-Blockworks-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Blockworks-API-Key': '<api-key>'}};
fetch('https://api.blockworks.com/query/tabular/perpetual-market-funding-rates/{perpetualMarketID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.blockworks.com/query/tabular/perpetual-market-funding-rates/{perpetualMarketID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Blockworks-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.blockworks.com/query/tabular/perpetual-market-funding-rates/{perpetualMarketID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Blockworks-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.blockworks.com/query/tabular/perpetual-market-funding-rates/{perpetualMarketID}")
.header("X-Blockworks-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blockworks.com/query/tabular/perpetual-market-funding-rates/{perpetualMarketID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Blockworks-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"baseAsset": "<baseAsset>",
"baseAssetID": "<baseAssetID>",
"baseAssetName": "<baseAssetName>",
"baseAssetSerialID": 123,
"baseAssetSlug": "<baseAssetSlug>",
"baseAssetSymbol": "<baseAssetSymbol>",
"exchange": "<exchange>",
"exchangeID": "<exchangeID>",
"exchangeName": "<exchangeName>",
"exchangeSerialID": 123,
"exchangeSlug": "<exchangeSlug>",
"exchangeSub": "<exchangeSub>",
"intervalHours": 123,
"name": "<name>",
"perpetualMarketID": "<perpetualMarketID>",
"symbol": "<symbol>"
},
"error": null,
"metadata": {
"matchedField": "perpetualMarketID"
}
}{
"data": null,
"error": "unknown selection field \"nope\""
}{
"data": null,
"error": "this model requires authentication"
}{
"data": null,
"error": "this model requires the \"derivatives-dataset\" permission; see https://app.blockworks.com/account/api for the public API permissions you hold"
}{
"data": null,
"error": "no row found matching \"unknown\""
}Authorizations
API key sent in the X-Blockworks-API-Key header; x-messari-api-key is accepted for existing integrations. The catalog endpoints and models open to everyone need no key.
Path Parameters
The Perpetual Market ID identifying the row.
Query Parameters
Comma-separated fields to return; defaults to all fields.
Available options:
perpetualMarketID, name, exchangeSlug, exchange, exchangeSub, symbol, baseAsset, baseAssetID, baseAssetName, baseAssetSlug, baseAssetSymbol, baseAssetSerialID, exchangeID, exchangeName, exchangeSerialID, intervalHours