Funding History
curl --request GET \
--url https://whitebit.com/api/v4/public/funding-history/{market}import requests
url = "https://whitebit.com/api/v4/public/funding-history/{market}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://whitebit.com/api/v4/public/funding-history/{market}', 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://whitebit.com/api/v4/public/funding-history/{market}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://whitebit.com/api/v4/public/funding-history/{market}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://whitebit.com/api/v4/public/funding-history/{market}")
.asString();require 'uri'
require 'net/http'
url = URI("https://whitebit.com/api/v4/public/funding-history/{market}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"fundingTime": "1752537600",
"fundingRate": "-0.0001229",
"market": "BTC_PERP",
"settlementPrice": "119816.5",
"rateCalculatedTime": "1752508800"
}
]Funding History
Retrieve the public funding rate history for futures and collateral markets via the V4 API.
GET
/
api
/
v4
/
public
/
funding-history
/
{market}
Funding History
curl --request GET \
--url https://whitebit.com/api/v4/public/funding-history/{market}import requests
url = "https://whitebit.com/api/v4/public/funding-history/{market}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://whitebit.com/api/v4/public/funding-history/{market}', 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://whitebit.com/api/v4/public/funding-history/{market}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://whitebit.com/api/v4/public/funding-history/{market}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://whitebit.com/api/v4/public/funding-history/{market}")
.asString();require 'uri'
require 'net/http'
url = URI("https://whitebit.com/api/v4/public/funding-history/{market}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"fundingTime": "1752537600",
"fundingRate": "-0.0001229",
"market": "BTC_PERP",
"settlementPrice": "119816.5",
"rateCalculatedTime": "1752508800"
}
]Path Parameters
Market name (e.g., BTC_PERP)
Example:
"BTC_PERP"
Query Parameters
Start timestamp in seconds
Example:
1752480000
End timestamp in seconds
Example:
1752537600
Number of records to return. Default: 100, Maximum: 1000
Required range:
1 <= x <= 1000Example:
100
Number of records to skip
Required range:
x >= 0Example:
0
Response
200 - application/json
Successful response
Timestamp when the funding executed
Example:
"1752537600"
Funding rate value
Example:
"-0.0001229"
Market name
Example:
"BTC_PERP"
Price at which the funding settled
Example:
"119816.5"
Timestamp of the funding rate calculation
Example:
"1752508800"
Was this page helpful?