Historical trades
curl --request GET \
--url https://api.oddpool.com/historical/kalshi/tradesimport requests
url = "https://api.oddpool.com/historical/kalshi/trades"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.oddpool.com/historical/kalshi/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://api.oddpool.com/historical/kalshi/trades",
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://api.oddpool.com/historical/kalshi/trades"
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://api.oddpool.com/historical/kalshi/trades")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.oddpool.com/historical/kalshi/trades")
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_bodyKalshi
Historical trades
Every trade execution on a Kalshi market.
GET
/
historical
/
kalshi
/
trades
Historical trades
curl --request GET \
--url https://api.oddpool.com/historical/kalshi/tradesimport requests
url = "https://api.oddpool.com/historical/kalshi/trades"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.oddpool.com/historical/kalshi/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://api.oddpool.com/historical/kalshi/trades",
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://api.oddpool.com/historical/kalshi/trades"
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://api.oddpool.com/historical/kalshi/trades")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.oddpool.com/historical/kalshi/trades")
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_bodyEvery trade execution on a Kalshi market. Kalshi only surfaces the taker’s buy side in public data.
Parameters
Kalshi market ticker (e.g.,
KXFEDDECISION-26APR-H0).Start time in Unix ms.
End time in Unix ms.
Max rows per page (1-200).
Cursor from previous response for next page.
Example
curl -H "X-API-Key: oddpool_..." \
"https://api.oddpool.com/historical/kalshi/trades?market_id=KXFEDDECISION-26APR-H0&start_time=1774015200000&end_time=1774018800000"
Response
{
"trades": [
{
"market_id": "KXFEDDECISION-26APR-H0",
"timestamp": 1774015436710,
"taker_side": "yes",
"price": "0.9500",
"size": 105.0,
"trade_id": "4bd8859f-eeaf-685e-e4b5-e9f17516b89c"
}
],
"pagination": { ... }
}
⌘I