curl --request GET \
--url https://external-api.kalshi.com/trade-api/v2/historical/cutoffimport requests
url = "https://external-api.kalshi.com/trade-api/v2/historical/cutoff"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://external-api.kalshi.com/trade-api/v2/historical/cutoff', 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://external-api.kalshi.com/trade-api/v2/historical/cutoff",
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://external-api.kalshi.com/trade-api/v2/historical/cutoff"
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://external-api.kalshi.com/trade-api/v2/historical/cutoff")
.asString();require 'uri'
require 'net/http'
url = URI("https://external-api.kalshi.com/trade-api/v2/historical/cutoff")
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{
"market_settled_ts": "2023-11-07T05:31:56Z",
"trades_created_ts": "2023-11-07T05:31:56Z",
"orders_updated_ts": "2023-11-07T05:31:56Z",
"market_positions_last_updated_ts": "2023-11-07T05:31:56Z"
}Get Historical Cutoff Timestamps
Returns the archive’s cutoff timestamps. For positions, the cutoff is the backfill horizon; visibility in the historical API waits for a buffered, whole-event handoff.
Cutoff fields
market_settled_ts: Markets that settled before this timestamp, and their candlesticks, must be accessed viaGET /historical/marketsandGET /historical/markets/{ticker}/candlesticks.trades_created_ts: Trades that were filled before this timestamp must be accessed viaGET /historical/fills.orders_updated_ts: Orders that were canceled or fully executed before this timestamp must be accessed viaGET /historical/orders. Resting (active) orders are always available inGET /portfolio/orders.market_positions_last_updated_ts: Backfill horizon for settled positions, not a guaranteed archive-visibility boundary. An event moves toGET /historical/positionsonly after its buffered handoff completes. Until then, its settled positions remain available viaGET /portfolio/positions?settlement_status=settled. Unsettled positions remain available inGET /portfolio/positions.
curl --request GET \
--url https://external-api.kalshi.com/trade-api/v2/historical/cutoffimport requests
url = "https://external-api.kalshi.com/trade-api/v2/historical/cutoff"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://external-api.kalshi.com/trade-api/v2/historical/cutoff', 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://external-api.kalshi.com/trade-api/v2/historical/cutoff",
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://external-api.kalshi.com/trade-api/v2/historical/cutoff"
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://external-api.kalshi.com/trade-api/v2/historical/cutoff")
.asString();require 'uri'
require 'net/http'
url = URI("https://external-api.kalshi.com/trade-api/v2/historical/cutoff")
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{
"market_settled_ts": "2023-11-07T05:31:56Z",
"trades_created_ts": "2023-11-07T05:31:56Z",
"orders_updated_ts": "2023-11-07T05:31:56Z",
"market_positions_last_updated_ts": "2023-11-07T05:31:56Z"
}Response
Historical cutoff timestamps retrieved successfully
Cutoff based on market settlement time. Markets and their candlesticks that settled before this timestamp must be accessed via GET /historical/markets and GET /historical/markets/{ticker}/candlesticks.
Cutoff based on trade fill time. Fills that occurred before this timestamp must be accessed via GET /historical/fills.
Cutoff based on order cancellation or execution time. Orders canceled or fully executed before this timestamp must be accessed via GET /historical/orders. Resting (active) orders are always available in GET /portfolio/orders.
Cutoff based on position last-update time. Settled positions archived from the live data set before this timestamp are served through the historical section of position reads.