Historical trade tape for a contract, paged by cursor
Pages back through a contract’s public fills, newest first, with the same enrichment as
the live tape (maker_address, tx_hash, log_index, fee, builder). Settlement,
redemption, and rebate booking rows are excluded, as are rows outside
price > 0 AND price <= 100 AND size > 0. price is on the 0–100 cents scale for every
provider, as in /v1/trades.
Paging: omit cursor for the newest page, then pass each response’s next_cursor
until it is null. Cursors are keyset positions, so pages never skip or repeat a trade as
new trades arrive.
Caching: a page whose cursor is more than 10 minutes old is treated as final. Each
replica caches it for an hour and shares it across callers, and it is sent with
Cache-Control: private, max-age=3600 and an ETag (304 on If-None-Match). A trade that
arrives more than 10 minutes after its timestamp can be missing from such a page for up
to that hour. Newer pages are cached for 3s per replica and sent with
Cache-Control: private, max-age=5.
Coverage: the tape starts when it was deployed; older pages are read from the same
store as /v1/trades until that store’s retention passes the deploy date.
curl --request GET \
--url https://md.kairos.trade/v1/trades/tape \
--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/tape"
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/tape', 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/tape",
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/tape"
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/tape")
.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/tape")
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",
"maker_address": "0x4bfb41d5b3570defd03c39a9a4d8de6bd8b8982e",
"tx_hash": "0x5e1d0c9f6a2b4e3d8c7b6a5f4e3d2c1b0a9f8e7d6c5b4a3f2e1d0c9b8a7f6e5d",
"log_index": 4
}
],
"has_more": true,
"next_cursor": "MTczNzQ3OTk5ODQxMjoweDlmMmEuLi5jMTE"
}{
"error": {
"code": "invalid_request",
"message": "cursor is invalid"
}
}{
"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
next_cursor from the previous page; omit for the newest page. The format is stable: base64url, without padding, of <trade_ts_ms>:<trade_id>, and the page holds trades strictly before that (trade_ts, trade_id) pair. A client that already holds trades may build one to continue below its oldest trade. A malformed cursor is rejected with 400.
Response
One page of the tape, newest first.
Was this page helpful?
curl --request GET \
--url https://md.kairos.trade/v1/trades/tape \
--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/tape"
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/tape', 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/tape",
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/tape"
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/tape")
.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/tape")
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",
"maker_address": "0x4bfb41d5b3570defd03c39a9a4d8de6bd8b8982e",
"tx_hash": "0x5e1d0c9f6a2b4e3d8c7b6a5f4e3d2c1b0a9f8e7d6c5b4a3f2e1d0c9b8a7f6e5d",
"log_index": 4
}
],
"has_more": true,
"next_cursor": "MTczNzQ3OTk5ODQxMjoweDlmMmEuLi5jMTE"
}{
"error": {
"code": "invalid_request",
"message": "cursor is invalid"
}
}{
"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"
}
}
