List bounded CEX OHLCV candles
curl --request GET \
--url https://api.portfobit.com/api/v1/market-data/candles \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.portfobit.com/api/v1/market-data/candles"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.portfobit.com/api/v1/market-data/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.portfobit.com/api/v1/market-data/candles",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.portfobit.com/api/v1/market-data/candles"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.portfobit.com/api/v1/market-data/candles")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.portfobit.com/api/v1/market-data/candles")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"symbol": "BTC/USDT",
"instrument_type": "spot",
"source": "<source>",
"source_venue": "binance",
"interval": "1h",
"candles": [
{
"open_time": "2026-08-07T07:00:00Z",
"close_time": "2026-08-07T08:00:00Z",
"open": "59800.00",
"high": "60100.00",
"low": "59700.00",
"close": "60000.00",
"base_volume": "123.45",
"quote_volume": null,
"is_closed": true
}
],
"requested_from": "2026-08-07T07:00:00Z",
"requested_to": null,
"coverage": {
"is_complete": true
},
"fetched_at": "2026-08-07T08:00:01Z"
},
"meta": {
"request_id": "req_01J2K8B7QW",
"generated_at": "2026-08-07T08:00:01Z"
}
}{
"error": {
"code": "invalid_candle_interval",
"message": "interval must be a supported candle interval",
"details": {}
},
"meta": {
"request_id": "req_01J2K8B7QW",
"generated_at": "2026-08-14T08:00:00Z"
}
}{
"error": {
"code": "market_venue_not_available",
"message": "The requested market venue is not available.",
"details": {
"venue": "binance"
}
},
"meta": {
"request_id": "req_01J2K8B7QW",
"generated_at": "2026-08-08T08:00:00Z"
}
}{
"error": {
"code": "market_candles_unsupported",
"message": "connector does not support market candle queries",
"details": {}
},
"meta": {
"request_id": "req_01J2K8B7QW",
"generated_at": "2026-08-14T08:00:00Z"
}
}{
"error": {
"code": "market_upstream_rate_limited",
"message": "The market-data provider is rate limited.",
"details": {}
},
"meta": {
"request_id": "req_01J2K8B7QW",
"generated_at": "2026-08-08T08:00:00Z"
}
}{
"error": {
"code": "unavailable",
"message": "market data is unavailable",
"details": {}
},
"meta": {
"request_id": "req_01J2K8B7QW",
"generated_at": "2026-08-14T08:00:00Z"
}
}Market data
List bounded CEX OHLCV candles
Requires marketdata:read. Returns a bounded raw OHLCV series from one CEX credential already connected by this user. It never reads a balance or position, uses an internal valuation price or cache, persists candles, retries across venues, or falls back to another venue. The accepted interval enum lists the supported candle intervals; a specific CEX can support only a subset. Maximum lookback from from is 1 day for 1s, 3 days for 10s, 7 days for 1m, 21 days for 3m, 30 days for 5m, 60 days for 10m, 90 days for 15m, 180 days for 30m, 270 days for 45m, 1 year for 1h, 2 years for 2h/3h/4h, 3 years for 6h/8h, 4 years for 12h, and 5 years for day/week/month/year intervals. Month and year close times use fixed 30-day and 365-day durations.
GET
/
market-data
/
candles
List bounded CEX OHLCV candles
curl --request GET \
--url https://api.portfobit.com/api/v1/market-data/candles \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.portfobit.com/api/v1/market-data/candles"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.portfobit.com/api/v1/market-data/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.portfobit.com/api/v1/market-data/candles",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.portfobit.com/api/v1/market-data/candles"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.portfobit.com/api/v1/market-data/candles")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.portfobit.com/api/v1/market-data/candles")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"symbol": "BTC/USDT",
"instrument_type": "spot",
"source": "<source>",
"source_venue": "binance",
"interval": "1h",
"candles": [
{
"open_time": "2026-08-07T07:00:00Z",
"close_time": "2026-08-07T08:00:00Z",
"open": "59800.00",
"high": "60100.00",
"low": "59700.00",
"close": "60000.00",
"base_volume": "123.45",
"quote_volume": null,
"is_closed": true
}
],
"requested_from": "2026-08-07T07:00:00Z",
"requested_to": null,
"coverage": {
"is_complete": true
},
"fetched_at": "2026-08-07T08:00:01Z"
},
"meta": {
"request_id": "req_01J2K8B7QW",
"generated_at": "2026-08-07T08:00:01Z"
}
}{
"error": {
"code": "invalid_candle_interval",
"message": "interval must be a supported candle interval",
"details": {}
},
"meta": {
"request_id": "req_01J2K8B7QW",
"generated_at": "2026-08-14T08:00:00Z"
}
}{
"error": {
"code": "market_venue_not_available",
"message": "The requested market venue is not available.",
"details": {
"venue": "binance"
}
},
"meta": {
"request_id": "req_01J2K8B7QW",
"generated_at": "2026-08-08T08:00:00Z"
}
}{
"error": {
"code": "market_candles_unsupported",
"message": "connector does not support market candle queries",
"details": {}
},
"meta": {
"request_id": "req_01J2K8B7QW",
"generated_at": "2026-08-14T08:00:00Z"
}
}{
"error": {
"code": "market_upstream_rate_limited",
"message": "The market-data provider is rate limited.",
"details": {}
},
"meta": {
"request_id": "req_01J2K8B7QW",
"generated_at": "2026-08-08T08:00:00Z"
}
}{
"error": {
"code": "unavailable",
"message": "market data is unavailable",
"details": {}
},
"meta": {
"request_id": "req_01J2K8B7QW",
"generated_at": "2026-08-14T08:00:00Z"
}
}