Get Price-to-Beat (PTB) values for crypto up/down contracts
Returns the oracle price captured at the start of each requested window
(“the price to beat”), nested {window: {symbol: {...}}}. windows is
comma-separated; each must be one of 1m, 5m, 15m, 1h, 4h, 1d. Window
starts align to clean ET boundaries. Only window PTB sources are
accepted: binance, kalshi_cfbenchmarks, polymarket_twap30,
polymarket_twap60. Contract-tick series (polymarket_chainlink,
hyperliquid_mark) are not window benchmarks and are rejected. When
source is omitted, the server picks Binance or a legacy TWAP series
from the oracle_twap_feed flag. Binance may fall back to an external
market-data source for missing symbols; venue series do not. Symbols
with no resolvable price for a window are omitted (not null).
curl --request GET \
--url https://data.kairos.trade/markets/crypto/ptbimport requests
url = "https://data.kairos.trade/markets/crypto/ptb"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data.kairos.trade/markets/crypto/ptb', 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://data.kairos.trade/markets/crypto/ptb",
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://data.kairos.trade/markets/crypto/ptb"
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://data.kairos.trade/markets/crypto/ptb")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.kairos.trade/markets/crypto/ptb")
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{}{
"detail": "Invalid window: 30m. Must be one of: ['15m', '1d', '1h', '1m', '4h', '5m']"
}{
"detail": "Invalid API credentials"
}{
"detail": "Invite required"
}{
"detail": [
{}
]
}{
"error": "Rate limit exceeded: 100 per 1 minute"
}{
"detail": "Failed to fetch price-to-beat values"
}Query Parameters
Was this page helpful?
curl --request GET \
--url https://data.kairos.trade/markets/crypto/ptbimport requests
url = "https://data.kairos.trade/markets/crypto/ptb"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data.kairos.trade/markets/crypto/ptb', 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://data.kairos.trade/markets/crypto/ptb",
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://data.kairos.trade/markets/crypto/ptb"
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://data.kairos.trade/markets/crypto/ptb")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.kairos.trade/markets/crypto/ptb")
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{}{
"detail": "Invalid window: 30m. Must be one of: ['15m', '1d', '1h', '1m', '4h', '5m']"
}{
"detail": "Invalid API credentials"
}{
"detail": "Invite required"
}{
"detail": [
{}
]
}{
"error": "Rate limit exceeded: 100 per 1 minute"
}{
"detail": "Failed to fetch price-to-beat values"
}
