24h statistics
curl --request GET \
--url https://api.polynode.dev/v3/perps/statistics/{instrument} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.polynode.dev/v3/perps/statistics/{instrument}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.polynode.dev/v3/perps/statistics/{instrument}', 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.polynode.dev/v3/perps/statistics/{instrument}",
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-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.polynode.dev/v3/perps/statistics/{instrument}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-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.polynode.dev/v3/perps/statistics/{instrument}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.polynode.dev/v3/perps/statistics/{instrument}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"instrument_id": 6,
"klines": [
[
1783512000000,
"62298",
"62414",
"61983",
"61983",
"3.3057599999999985",
145
],
[
1783515600000,
"61948",
"62048",
"61642",
"61898",
"6.7158599999999975",
258
],
[
1783519200000,
"61908",
"62131",
"61684",
"61851.0",
"10.522599999999995",
495
],
[
1783522800000,
"61842",
"61871",
"61513",
"61663",
"14.885540000000004",
711
],
[
1783526400000,
"61649",
"62087",
"61646",
"62074",
"6.778779999999998",
462
],
[
1783530000000,
"62065.0",
"62351",
"61993",
"62052",
"4.538209999999999",
374
],
[
1783533600000,
"62062",
"62310",
"61942",
"62163",
"19.3358",
521
],
[
1783537200000,
"62218",
"62251",
"62031",
"62234",
"12.349020000000007",
812
],
[
1783540800000,
"62244",
"62263",
"62046",
"62061",
"7.934680000000001",
403
],
[
1783544400000,
"62055",
"62162",
"61935",
"62133.0",
"7.6189",
513
],
[
1783548000000,
"62143",
"62279",
"62127",
"62277",
"9.057320000000004",
442
],
[
1783551600000,
"62277",
"62303",
"62122",
"62262",
"3.347849999999998",
330
],
[
1783555200000,
"62248",
"62250",
"62029",
"62067",
"6.746679999999999",
505
],
[
1783558800000,
"62079",
"62591",
"61819",
"61875",
"15.954740000000001",
673
],
[
1783562400000,
"61884",
"62058",
"61679",
"61750",
"12.066850000000002",
479
],
[
1783566000000,
"61752",
"61969",
"61690",
"61943",
"3.7135199999999995",
284
],
[
1783569600000,
"61933",
"62421",
"61920",
"62420.0",
"2.5396799999999997",
252
],
[
1783573200000,
"62399",
"62553",
"62220",
"62476",
"2.784079999999999",
309
],
[
1783576800000,
"62528",
"62934",
"62429",
"62934",
"7.279069999999999",
408
],
[
1783580400000,
"62907",
"63210",
"62751",
"62940.0",
"6.79149",
456
],
[
1783584000000,
"62958",
"63042",
"62807",
"62865",
"15.554419999999999",
342
],
[
1783587600000,
"62864",
"62958",
"62778",
"62916",
"4.649289999999999",
442
],
[
1783591200000,
"62911",
"63005",
"62648",
"62722",
"2.0302699999999994",
261
],
[
1783594800000,
"62736",
"62787",
"62573",
"62772",
"2.205979999999999",
295
]
],
"open_price": "62298",
"symbol": "BTC-USD",
"volume": "11746664.800699994"
}Perps Market Data
24h Statistics
Rolling 24h volume, open price and hourly candles for one instrument.
GET
/
v3
/
perps
/
statistics
/
{instrument}
24h statistics
curl --request GET \
--url https://api.polynode.dev/v3/perps/statistics/{instrument} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.polynode.dev/v3/perps/statistics/{instrument}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.polynode.dev/v3/perps/statistics/{instrument}', 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.polynode.dev/v3/perps/statistics/{instrument}",
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-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.polynode.dev/v3/perps/statistics/{instrument}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-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.polynode.dev/v3/perps/statistics/{instrument}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.polynode.dev/v3/perps/statistics/{instrument}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"instrument_id": 6,
"klines": [
[
1783512000000,
"62298",
"62414",
"61983",
"61983",
"3.3057599999999985",
145
],
[
1783515600000,
"61948",
"62048",
"61642",
"61898",
"6.7158599999999975",
258
],
[
1783519200000,
"61908",
"62131",
"61684",
"61851.0",
"10.522599999999995",
495
],
[
1783522800000,
"61842",
"61871",
"61513",
"61663",
"14.885540000000004",
711
],
[
1783526400000,
"61649",
"62087",
"61646",
"62074",
"6.778779999999998",
462
],
[
1783530000000,
"62065.0",
"62351",
"61993",
"62052",
"4.538209999999999",
374
],
[
1783533600000,
"62062",
"62310",
"61942",
"62163",
"19.3358",
521
],
[
1783537200000,
"62218",
"62251",
"62031",
"62234",
"12.349020000000007",
812
],
[
1783540800000,
"62244",
"62263",
"62046",
"62061",
"7.934680000000001",
403
],
[
1783544400000,
"62055",
"62162",
"61935",
"62133.0",
"7.6189",
513
],
[
1783548000000,
"62143",
"62279",
"62127",
"62277",
"9.057320000000004",
442
],
[
1783551600000,
"62277",
"62303",
"62122",
"62262",
"3.347849999999998",
330
],
[
1783555200000,
"62248",
"62250",
"62029",
"62067",
"6.746679999999999",
505
],
[
1783558800000,
"62079",
"62591",
"61819",
"61875",
"15.954740000000001",
673
],
[
1783562400000,
"61884",
"62058",
"61679",
"61750",
"12.066850000000002",
479
],
[
1783566000000,
"61752",
"61969",
"61690",
"61943",
"3.7135199999999995",
284
],
[
1783569600000,
"61933",
"62421",
"61920",
"62420.0",
"2.5396799999999997",
252
],
[
1783573200000,
"62399",
"62553",
"62220",
"62476",
"2.784079999999999",
309
],
[
1783576800000,
"62528",
"62934",
"62429",
"62934",
"7.279069999999999",
408
],
[
1783580400000,
"62907",
"63210",
"62751",
"62940.0",
"6.79149",
456
],
[
1783584000000,
"62958",
"63042",
"62807",
"62865",
"15.554419999999999",
342
],
[
1783587600000,
"62864",
"62958",
"62778",
"62916",
"4.649289999999999",
442
],
[
1783591200000,
"62911",
"63005",
"62648",
"62722",
"2.0302699999999994",
261
],
[
1783594800000,
"62736",
"62787",
"62573",
"62772",
"2.205979999999999",
295
]
],
"open_price": "62298",
"symbol": "BTC-USD",
"volume": "11746664.800699994"
}⌘I

