Fetch normalized, Kairos-ingested trade history for a contract
Returns normalized trade history for a single (provider, contract_id) from Kairos’s own ingested trade store. It serves from data Kairos has already ingested, so coverage depends on how much history has been backfilled/streamed for that contract.
Auth: none required. If you send an API key, it needs the trade:read scope, and API access to the requested provider must be enabled; otherwise you get 403. Sessions skip both checks.
Data source / staleness: reads ingested trade rows for the window [before - window_seconds, before) (or ending “now” if before is omitted). If trigger_ingest=true and the data is missing or stale, an ingestion job is kicked off for that contract and reported via the indexing flag in the response — the returned trades may still be incomplete for that call.
curl --request GET \
--url https://data.kairos.trade/trades/historyimport requests
url = "https://data.kairos.trade/trades/history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data.kairos.trade/trades/history', 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/trades/history",
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/trades/history"
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/trades/history")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.kairos.trade/trades/history")
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{
"trades": [
{
"trade_id": "kalshi:KXPRESPOLAND-24-DT:9f2a1c",
"order_id": "0x9f2a1c...7bd4",
"contract_id": "KXPRESPOLAND-24-DT",
"size": 50,
"price": 63,
"outcome": "yes",
"timestamp": 1753142400,
"yes_price": 63,
"no_price": 37,
"taker_side": "yes",
"token_id": "<string>",
"metadata": "<string>",
"taker_address": "<string>",
"maker_address": "<string>",
"side": "BUY"
}
],
"has_more": true,
"source": "<string>",
"coverage_hours": 24,
"indexing": false,
"oldest_available_ts": 1750000000
}{
"detail": "Invalid trade history request"
}{
"detail": "Invalid API credentials"
}{
"detail": "<string>"
}{
"detail": [
{}
]
}{
"error": "Rate limit exceeded: 100 per 1 minute"
}{
"detail": "Trade history fetch failed"
}{
"detail": "Invalid provider"
}Query Parameters
Response
Normalized trade rows for the window plus pagination/coverage metadata.
Was this page helpful?
curl --request GET \
--url https://data.kairos.trade/trades/historyimport requests
url = "https://data.kairos.trade/trades/history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data.kairos.trade/trades/history', 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/trades/history",
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/trades/history"
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/trades/history")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.kairos.trade/trades/history")
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{
"trades": [
{
"trade_id": "kalshi:KXPRESPOLAND-24-DT:9f2a1c",
"order_id": "0x9f2a1c...7bd4",
"contract_id": "KXPRESPOLAND-24-DT",
"size": 50,
"price": 63,
"outcome": "yes",
"timestamp": 1753142400,
"yes_price": 63,
"no_price": 37,
"taker_side": "yes",
"token_id": "<string>",
"metadata": "<string>",
"taker_address": "<string>",
"maker_address": "<string>",
"side": "BUY"
}
],
"has_more": true,
"source": "<string>",
"coverage_hours": 24,
"indexing": false,
"oldest_available_ts": 1750000000
}{
"detail": "Invalid trade history request"
}{
"detail": "Invalid API credentials"
}{
"detail": "<string>"
}{
"detail": [
{}
]
}{
"error": "Rate limit exceeded: 100 per 1 minute"
}{
"detail": "Trade history fetch failed"
}{
"detail": "Invalid provider"
}
