curl --request GET \
--url https://external-api.kalshi.com/trade-api/v2/series/{series_ticker}/markets/{ticker}/candlesticksimport requests
url = "https://external-api.kalshi.com/trade-api/v2/series/{series_ticker}/markets/{ticker}/candlesticks"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://external-api.kalshi.com/trade-api/v2/series/{series_ticker}/markets/{ticker}/candlesticks', 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/series/{series_ticker}/markets/{ticker}/candlesticks",
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/series/{series_ticker}/markets/{ticker}/candlesticks"
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/series/{series_ticker}/markets/{ticker}/candlesticks")
.asString();require 'uri'
require 'net/http'
url = URI("https://external-api.kalshi.com/trade-api/v2/series/{series_ticker}/markets/{ticker}/candlesticks")
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{
"ticker": "<string>",
"candlesticks": [
{
"end_period_ts": 123,
"yes_bid": {
"open_dollars": "0.5600",
"low_dollars": "0.5600",
"high_dollars": "0.5600",
"close_dollars": "0.5600"
},
"yes_ask": {
"open_dollars": "0.5600",
"low_dollars": "0.5600",
"high_dollars": "0.5600",
"close_dollars": "0.5600"
},
"price": {
"open_dollars": "0.5600",
"low_dollars": "0.5600",
"high_dollars": "0.5600",
"close_dollars": "0.5600",
"mean_dollars": "0.5600",
"previous_dollars": "0.5600",
"min_dollars": "0.5600",
"max_dollars": "0.5600"
},
"volume_fp": "10.00",
"open_interest_fp": "10.00"
}
]
}Get Market Candlesticks
Time period length of each candlestick in minutes. Valid values: 1 (1 minute), 60 (1 hour), 1440 (1 day).
Candlesticks for markets that settled before the historical cutoff are only available via GET /historical/markets/{ticker}/candlesticks. See Historical Data for details.
One request can span at most 5,000 periods. If the minutes between start_ts and end_ts divided by period_interval exceed 5,000, the request is rejected with 400 bad_request and the details field gives the requested and maximum counts. For example, 1-minute candlesticks are limited to about 3.5 days per request; split a longer range into several requests. start_ts and end_ts must be in seconds; millisecond values are rejected with 400 bad_request.
The most recent candlesticks can be a few seconds behind the latest trades and quotes.
curl --request GET \
--url https://external-api.kalshi.com/trade-api/v2/series/{series_ticker}/markets/{ticker}/candlesticksimport requests
url = "https://external-api.kalshi.com/trade-api/v2/series/{series_ticker}/markets/{ticker}/candlesticks"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://external-api.kalshi.com/trade-api/v2/series/{series_ticker}/markets/{ticker}/candlesticks', 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/series/{series_ticker}/markets/{ticker}/candlesticks",
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/series/{series_ticker}/markets/{ticker}/candlesticks"
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/series/{series_ticker}/markets/{ticker}/candlesticks")
.asString();require 'uri'
require 'net/http'
url = URI("https://external-api.kalshi.com/trade-api/v2/series/{series_ticker}/markets/{ticker}/candlesticks")
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{
"ticker": "<string>",
"candlesticks": [
{
"end_period_ts": 123,
"yes_bid": {
"open_dollars": "0.5600",
"low_dollars": "0.5600",
"high_dollars": "0.5600",
"close_dollars": "0.5600"
},
"yes_ask": {
"open_dollars": "0.5600",
"low_dollars": "0.5600",
"high_dollars": "0.5600",
"close_dollars": "0.5600"
},
"price": {
"open_dollars": "0.5600",
"low_dollars": "0.5600",
"high_dollars": "0.5600",
"close_dollars": "0.5600",
"mean_dollars": "0.5600",
"previous_dollars": "0.5600",
"min_dollars": "0.5600",
"max_dollars": "0.5600"
},
"volume_fp": "10.00",
"open_interest_fp": "10.00"
}
]
}Path Parameters
Query Parameters
If true, prepends the latest candlestick available before the start_ts. This synthetic candlestick is created by:
- Finding the most recent real candlestick before start_ts
- Projecting it forward to the first period boundary (calculated as the next period interval after start_ts)
- Setting all OHLC prices to null, and
previous_priceto the close price from the real candlestick