Asset candles
curl --request GET \
--url https://calibri.io/api/v2/pythia/public/assets/{symbol}/candlesimport requests
url = "https://calibri.io/api/v2/pythia/public/assets/{symbol}/candles"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://calibri.io/api/v2/pythia/public/assets/{symbol}/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://calibri.io/api/v2/pythia/public/assets/{symbol}/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://calibri.io/api/v2/pythia/public/assets/{symbol}/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://calibri.io/api/v2/pythia/public/assets/{symbol}/candles")
.asString();require 'uri'
require 'net/http'
url = URI("https://calibri.io/api/v2/pythia/public/assets/{symbol}/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{
"candles": [
{
"c": 3240.5,
"h": 3245.75,
"l": 3230.5,
"o": 3238.25,
"t": 1722950400,
"v": 245.8
}
],
"granularity": "1m",
"has_more": true,
"next_to": 1722950399,
"symbol": "ETH-USD"
}{
"errors": [
"order.not_found"
]
}{
"errors": [
"order.not_found"
]
}Assets
Asset candles
The candles for one product, from that product’s feed: Coinbase’s own published candles, stored verbatim — not recomputed from sampled ticks.
Paged BACKWARD only: send the returned next_to as the new to.
Products fed from Chainlink Data Streams (BTC-USD) are not served here:
their series is licensed for display on Calibri only, and this route
answers 404 public.asset.not_available for them. A market’s settled
price to beat and final price stay public in its price_settlement.
GET
/
api
/
v2
/
pythia
/
public
/
assets
/
{symbol}
/
candles
Asset candles
curl --request GET \
--url https://calibri.io/api/v2/pythia/public/assets/{symbol}/candlesimport requests
url = "https://calibri.io/api/v2/pythia/public/assets/{symbol}/candles"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://calibri.io/api/v2/pythia/public/assets/{symbol}/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://calibri.io/api/v2/pythia/public/assets/{symbol}/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://calibri.io/api/v2/pythia/public/assets/{symbol}/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://calibri.io/api/v2/pythia/public/assets/{symbol}/candles")
.asString();require 'uri'
require 'net/http'
url = URI("https://calibri.io/api/v2/pythia/public/assets/{symbol}/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{
"candles": [
{
"c": 3240.5,
"h": 3245.75,
"l": 3230.5,
"o": 3238.25,
"t": 1722950400,
"v": 245.8
}
],
"granularity": "1m",
"has_more": true,
"next_to": 1722950399,
"symbol": "ETH-USD"
}{
"errors": [
"order.not_found"
]
}{
"errors": [
"order.not_found"
]
}Query Parameters
Response
OK