Get OHLCV candles
curl --request GET \
--url https://api.numofx.com/v1/candlesimport requests
url = "https://api.numofx.com/v1/candles"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.numofx.com/v1/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://api.numofx.com/v1/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://api.numofx.com/v1/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://api.numofx.com/v1/candles")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.numofx.com/v1/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{
"market_presentation": {
"market": "<string>",
"contract_type": "<string>",
"settlement_type": "<string>",
"base_asset_symbol": "<string>",
"quote_asset_symbol": "<string>",
"expiry_timestamp": 123,
"display_name": "<string>",
"display_label": "<string>",
"tick_size": "<string>",
"settlement_note": "<string>",
"asset_address": "<string>",
"sub_id": "<string>",
"order_entry_spec": "<string>"
},
"interval": "<string>",
"candles": [
{
"bucket_start": "2023-11-07T05:31:56Z",
"open": "<string>",
"high": "<string>",
"low": "<string>",
"close": "<string>",
"volume": "<string>",
"quote_volume": "<string>",
"trade_count": 123
}
]
}{
"error": "<string>"
}Markets service
Get OHLCV candles
GET
/
v1
/
candles
Get OHLCV candles
curl --request GET \
--url https://api.numofx.com/v1/candlesimport requests
url = "https://api.numofx.com/v1/candles"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.numofx.com/v1/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://api.numofx.com/v1/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://api.numofx.com/v1/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://api.numofx.com/v1/candles")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.numofx.com/v1/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{
"market_presentation": {
"market": "<string>",
"contract_type": "<string>",
"settlement_type": "<string>",
"base_asset_symbol": "<string>",
"quote_asset_symbol": "<string>",
"expiry_timestamp": 123,
"display_name": "<string>",
"display_label": "<string>",
"tick_size": "<string>",
"settlement_note": "<string>",
"asset_address": "<string>",
"sub_id": "<string>",
"order_entry_spec": "<string>"
},
"interval": "<string>",
"candles": [
{
"bucket_start": "2023-11-07T05:31:56Z",
"open": "<string>",
"high": "<string>",
"low": "<string>",
"close": "<string>",
"volume": "<string>",
"quote_volume": "<string>",
"trade_count": 123
}
]
}{
"error": "<string>"
}Buckets are returned oldest first, so a chart can render them directly.
Periods with no trades are absent, not zero-filled. This venue trades sparsely, and
emitting flat synthetic candles would invent price action that never happened. If you need a
continuous axis, carry the previous close forward yourself.
Query Parameters
Canonical market symbol such as USDCcNGN-SEP16-2026
Bucket size
Available options:
1m, 5m, 15m, 1h, 4h, 1d Maximum number of buckets to return
Required range:
1 <= x <= 1000RFC3339 lower bound, inclusive
RFC3339 upper bound, must be after start
Was this page helpful?
⌘I

