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": 3240.5,
"complete": true,
"confirmed": true,
"granularity_seconds": 300,
"high": 3245.75,
"low": 3230.5,
"open": 3238.25,
"symbol": "ETH-USD",
"window_end": 1722950700,
"window_start": 1722950400
}{
"errors": [
"order.not_found"
]
}{
"errors": [
"order.not_found"
]
}Asset window
The stored candle for ONE window — its open, high, low and the close so far. An up/down market compares this window’s close with the PREVIOUS window’s close, not with this window’s open: request the previous window for the level to beat.
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.
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.
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": 3240.5,
"complete": true,
"confirmed": true,
"granularity_seconds": 300,
"high": 3245.75,
"low": 3230.5,
"open": 3238.25,
"symbol": "ETH-USD",
"window_end": 1722950700,
"window_start": 1722950400
}{
"errors": [
"order.not_found"
]
}{
"errors": [
"order.not_found"
]
}Query Parameters
Response
OK
Confirmed: the candle was read AFTER its bucket closed, so it can no longer change. Distinct from Complete: for a few seconds after a window closes, Complete can be true while the 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