Funding spread chart data
curl --request GET \
--url https://perps-api.vooi.io/funding-strategies/spread-chartimport requests
url = "https://perps-api.vooi.io/funding-strategies/spread-chart"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://perps-api.vooi.io/funding-strategies/spread-chart', 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://perps-api.vooi.io/funding-strategies/spread-chart",
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://perps-api.vooi.io/funding-strategies/spread-chart"
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://perps-api.vooi.io/funding-strategies/spread-chart")
.asString();require 'uri'
require 'net/http'
url = URI("https://perps-api.vooi.io/funding-strategies/spread-chart")
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[
{
"date": "2024-01-01T00:00:00.000Z",
"spread": "0.0001"
}
]Funding Strategies
Funding spread chart data
Returns hourly spread data points for a specific long/short exchange pair over the requested time range. Each point represents the hourly funding rate spread (shortRate − longRate) normalized to 1 hour. Historical rates are extrapolated across the full funding interval when an exchange settles less frequently than every hour.
GET
/
funding-strategies
/
spread-chart
Funding spread chart data
curl --request GET \
--url https://perps-api.vooi.io/funding-strategies/spread-chartimport requests
url = "https://perps-api.vooi.io/funding-strategies/spread-chart"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://perps-api.vooi.io/funding-strategies/spread-chart', 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://perps-api.vooi.io/funding-strategies/spread-chart",
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://perps-api.vooi.io/funding-strategies/spread-chart"
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://perps-api.vooi.io/funding-strategies/spread-chart")
.asString();require 'uri'
require 'net/http'
url = URI("https://perps-api.vooi.io/funding-strategies/spread-chart")
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[
{
"date": "2024-01-01T00:00:00.000Z",
"spread": "0.0001"
}
]Query Parameters
Start of the date range
Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$Example:
"2026-01-01"
Asset base symbol for long position.
Example:
"BTCUSDT"
Exchange where the long position is held.
Available options:
aster, binance, bybit, extended, gate, hyperliquid, lighter, mexc, ondo, robinhood Example:
"lighter"
Asset base symbol for short position.
Example:
"BTC"
Exchange where the short position is held.
Available options:
aster, binance, bybit, extended, gate, hyperliquid, lighter, mexc, ondo, robinhood Example:
"aster"
End of the date range
Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$Example:
"2026-01-31"
Response
200 - application/json
Timestamp of the 1-hour interval (ISO 8601).
Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$Example:
"2024-01-01T00:00:00.000Z"
Hourly funding bps rate spread (shortRate − longRate) as a decimal.
Example:
"0.0001"