OHLCV candles
curl --request GET \
--url https://hyper.polynode.dev/exchange/candlesimport requests
url = "https://hyper.polynode.dev/exchange/candles"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://hyper.polynode.dev/exchange/candles', 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://hyper.polynode.dev/exchange/candles",
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://hyper.polynode.dev/exchange/candles"
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://hyper.polynode.dev/exchange/candles")
.asString();require 'uri'
require 'net/http'
url = URI("https://hyper.polynode.dev/exchange/candles")
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[
{
"t": 123,
"T": 123,
"s": "<string>",
"i": "<string>",
"o": "<string>",
"c": "<string>",
"h": "<string>",
"l": "<string>",
"v": "<string>",
"n": 123
}
]Market Data
OHLCV Candles
GET
/
exchange
/
candles
OHLCV candles
curl --request GET \
--url https://hyper.polynode.dev/exchange/candlesimport requests
url = "https://hyper.polynode.dev/exchange/candles"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://hyper.polynode.dev/exchange/candles', 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://hyper.polynode.dev/exchange/candles",
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://hyper.polynode.dev/exchange/candles"
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://hyper.polynode.dev/exchange/candles")
.asString();require 'uri'
require 'net/http'
url = URI("https://hyper.polynode.dev/exchange/candles")
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[
{
"t": 123,
"T": 123,
"s": "<string>",
"i": "<string>",
"o": "<string>",
"c": "<string>",
"h": "<string>",
"l": "<string>",
"v": "<string>",
"n": 123
}
]OHLCV candles for a single asset and interval. Both
start_time and end_time are required.
Supported intervals: 1m, 5m, 15m, 1h, 4h, 1d.
Example
curl -H "x-api-key: YOUR_KEY" "https://hyper.polynode.dev/v2/candles?coin=BTC&interval=1h&start_time=1776000000000&end_time=1776090000000"
[
{
"t": 1775998800000,
"T": 1776002399999,
"s": "BTC",
"i": "1h",
"o": "71052.0",
"c": "70855.0",
"h": "71106.0",
"l": "70833.0",
"v": "1726.25425",
"n": 26227
}
]
| Field | Description |
|---|---|
t | Open time (Unix ms) |
T | Close time (Unix ms) |
s | Symbol |
i | Interval |
o | Open price |
c | Close price |
h | High price |
l | Low price |
v | Volume (base asset units) |
n | Number of trades |
Query Parameters
Available options:
1m, 5m, 15m, 1h, 4h, 1d