curl --request GET \
--url https://calibri.io/api/v2/pythia/public/assets/{symbol}/windowimport requests
url = "https://calibri.io/api/v2/pythia/public/assets/{symbol}/window"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://calibri.io/api/v2/pythia/public/assets/{symbol}/window', 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}/window",
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}/window"
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}/window")
.asString();require 'uri'
require 'net/http'
url = URI("https://calibri.io/api/v2/pythia/public/assets/{symbol}/window")
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{
"close": 65400.5,
"complete": true,
"confirmed": true,
"granularity_seconds": 300,
"high": 65450.75,
"low": 65300.5,
"open": 65380.25,
"symbol": "BTC-USD",
"window_end": 1722950700,
"window_start": 1722950400
}{
"errors": [
"order.not_found"
]
}Asset window
The exchange’s own candle for ONE window — the price to beat, and the price so far. This is the figure a candle-direction market settles on.
Two flags, and the distinction matters: complete means the window is
over BY THE CLOCK; confirmed means the stored candle was read AFTER its
bucket closed and can no longer change. In the seconds between, complete
is true while close is still mid-formation — do not present an
unconfirmed close as final.
curl --request GET \
--url https://calibri.io/api/v2/pythia/public/assets/{symbol}/windowimport requests
url = "https://calibri.io/api/v2/pythia/public/assets/{symbol}/window"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://calibri.io/api/v2/pythia/public/assets/{symbol}/window', 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}/window",
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}/window"
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}/window")
.asString();require 'uri'
require 'net/http'
url = URI("https://calibri.io/api/v2/pythia/public/assets/{symbol}/window")
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{
"close": 65400.5,
"complete": true,
"confirmed": true,
"granularity_seconds": 300,
"high": 65450.75,
"low": 65300.5,
"open": 65380.25,
"symbol": "BTC-USD",
"window_end": 1722950700,
"window_start": 1722950400
}{
"errors": [
"order.not_found"
]
}Path Parameters
Coinbase product id, e.g. BTC-USD
Query Parameters
Window opening instant, Unix seconds, on a granularity boundary
Window width in seconds (default 300)
Response
OK
65400.5
Complete: the window is over BY THE CLOCK.
true
Confirmed: the candle we hold was read AFTER its bucket closed, so it can no longer change. Distinct from Complete, and the distinction is the whole point — for the seconds between a window closing and the poller re-reading it, the clock says finished while the stored close is still a mid-formation value. Showing that as final would mean showing a number that then moves, on the one figure that decides whether a member won.
true
300
65450.75
65300.5
Pointers, because present-but-empty is a real state: the poller has not read this bucket yet, which is normal in the first seconds of a window. Omitted rather than zeroed so a client shows a placeholder instead of drawing a $0.00 open.
65380.25
"BTC-USD"
1722950700
1722950400