Recent trade tape for a contract
Returns the most recent individual trades for a single (provider, contract_id) pair,
newest first, deduplicated by trade id. Only rows with price > 0 AND price <= 100 AND size > 0 are eligible.
Price unit: price is on the integer-cents scale 0–100 for every provider
(Kalshi, Polymarket, predict.fun, Hyperliquid alike) — it is NOT a 0–1 probability and
NOT already divided into dollars. Multiply size * price / 100 to get USD notional.
price is returned as a float because some venues (e.g. Kalshi) report sub-penny ticks.
Window semantics: the query window is [end - window_seconds, end), where end is
before when you pass it and the current server time otherwise. The window trails
before, so lowering before pages back past 24 hours. before is whole seconds, so
use /v1/trades/tape when you need gap-free paging. If the window holds no trades, the server retries with no lower
bound, [0, end), so a contract with no recent activity still returns its most recent
trades. has_more is true whenever the page holds limit trades.
Rate-limit cost (HEAVY bucket): priced by requested depth — a larger limit
consumes more of your quota.
Caching: responses are cached for 3s per replica (with singleflight coalescing) to
absorb duplicate concurrent requests, and the implicit now upper bound is quantized to
that same 3s so the cache is usable at all. The HTTP response itself is
Cache-Control: private, max-age=5 with no ETag — this route never returns 304.
Responses ≥1KB are gzip-compressed when the client sends Accept-Encoding: gzip.
curl --request GET \
--url https://md.kairos.trade/v1/trades \
--header 'X-Api-Key: <api-key>' \
--header 'X-Api-Secret: <api-key>' \
--header 'X-Client-Id: <api-key>'import requests
url = "https://md.kairos.trade/v1/trades"
headers = {
"X-Client-Id": "<api-key>",
"X-Api-Key": "<api-key>",
"X-Api-Secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-Client-Id': '<api-key>',
'X-Api-Key': '<api-key>',
'X-Api-Secret': '<api-key>'
}
};
fetch('https://md.kairos.trade/v1/trades', 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://md.kairos.trade/v1/trades",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>",
"X-Api-Secret: <api-key>",
"X-Client-Id: <api-key>"
],
]);
$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://md.kairos.trade/v1/trades"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Client-Id", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("X-Api-Secret", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://md.kairos.trade/v1/trades")
.header("X-Client-Id", "<api-key>")
.header("X-Api-Key", "<api-key>")
.header("X-Api-Secret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://md.kairos.trade/v1/trades")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Client-Id"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
request["X-Api-Secret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"trades": [
{
"trade_id": "0x9f2a...c11",
"contract_id": "0x8b1c119419f622e21fc576ec8e9c2c07b2c1b09babf0e1f3d1cb9bfc1a8f9c2",
"size": 250,
"price": 62.5,
"outcome": "Yes",
"timestamp": 1737479998.412,
"token_id": "10945...3321",
"taker_address": "0xabc1234567890abcdef1234567890abcdef1234",
"side": "buy"
}
],
"has_more": true,
"oldest_available_ts": 1737479950.001,
"coverage_hours": 0.01
}{
"error": {
"code": "invalid_request",
"message": "limit must be an integer in [1, 500]"
}
}{
"error": {
"code": "unauthorized",
"message": "valid X-Client-Id, X-Api-Key, and X-Api-Secret headers are required"
}
}{
"error": {
"code": "ip_not_whitelisted",
"message": "source IP not in credential whitelist"
}
}{
"error": {
"code": "rate_limited",
"message": "rate limit exceeded"
}
}{
"error": {
"code": "invalid_request",
"message": "market_ids exceeds maximum 200"
}
}{
"error": {
"code": "rate_limiter_unavailable",
"message": "rate limiter temporarily unavailable"
}
}Authorizations
Query Parameters
Venue identifier, case-insensitive. Resolved against the central provider registry; kalshi_offchain is an alias for kalshi and dome is an alias for polymarket. Kairos does not support Opinion; opinion still resolves, for historic reads only.
kalshi, kalshi_offchain, polymarket, dome, predictfun, hyperliquid Lookback window, in seconds, measured back from before (or from the current server time when before is omitted). Default 86400 (24 hours); valid range [3600, 86400]. Out-of-range or non-integer values are rejected with 400, not clamped.
3600 <= x <= 86400Response
Trade page for the window, newest first. trades may be empty (and oldest_available_ts null) if the contract has no recorded trades at all, even after the unbounded fallback query.
Was this page helpful?
curl --request GET \
--url https://md.kairos.trade/v1/trades \
--header 'X-Api-Key: <api-key>' \
--header 'X-Api-Secret: <api-key>' \
--header 'X-Client-Id: <api-key>'import requests
url = "https://md.kairos.trade/v1/trades"
headers = {
"X-Client-Id": "<api-key>",
"X-Api-Key": "<api-key>",
"X-Api-Secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-Client-Id': '<api-key>',
'X-Api-Key': '<api-key>',
'X-Api-Secret': '<api-key>'
}
};
fetch('https://md.kairos.trade/v1/trades', 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://md.kairos.trade/v1/trades",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>",
"X-Api-Secret: <api-key>",
"X-Client-Id: <api-key>"
],
]);
$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://md.kairos.trade/v1/trades"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Client-Id", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("X-Api-Secret", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://md.kairos.trade/v1/trades")
.header("X-Client-Id", "<api-key>")
.header("X-Api-Key", "<api-key>")
.header("X-Api-Secret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://md.kairos.trade/v1/trades")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Client-Id"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
request["X-Api-Secret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"trades": [
{
"trade_id": "0x9f2a...c11",
"contract_id": "0x8b1c119419f622e21fc576ec8e9c2c07b2c1b09babf0e1f3d1cb9bfc1a8f9c2",
"size": 250,
"price": 62.5,
"outcome": "Yes",
"timestamp": 1737479998.412,
"token_id": "10945...3321",
"taker_address": "0xabc1234567890abcdef1234567890abcdef1234",
"side": "buy"
}
],
"has_more": true,
"oldest_available_ts": 1737479950.001,
"coverage_hours": 0.01
}{
"error": {
"code": "invalid_request",
"message": "limit must be an integer in [1, 500]"
}
}{
"error": {
"code": "unauthorized",
"message": "valid X-Client-Id, X-Api-Key, and X-Api-Secret headers are required"
}
}{
"error": {
"code": "ip_not_whitelisted",
"message": "source IP not in credential whitelist"
}
}{
"error": {
"code": "rate_limited",
"message": "rate limit exceeded"
}
}{
"error": {
"code": "invalid_request",
"message": "market_ids exceeds maximum 200"
}
}{
"error": {
"code": "rate_limiter_unavailable",
"message": "rate limiter temporarily unavailable"
}
}
