Batch Get Market Candlesticks
Changed onEndpoint for retrieving candlestick data for multiple markets.
- Accepts up to 100 market tickers per request
- Returns up to 10,000 candlesticks total across all markets
- Returns candlesticks grouped by market_id
- Optionally includes a synthetic initial candlestick for price continuity (see include_latest_before_start parameter)
Request
- Base URLhttps://external-api.kalshi.com/trade-api/v2
- URLhttps://external-api.kalshi.com/trade-api/v2/markets/candlesticks
- Authnone declared
Query parameters
Comma-separated list of market tickers (maximum 100)
Start timestamp in Unix seconds
End timestamp in Unix seconds
Candlestick period interval in minutes
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_price to the close price from the real candlestick
Response
Market candlesticks retrieved successfully
Example response
{
"markets": [
{
"candlesticks": [
{
"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"
}
]
}
]
}Changes
- breaking
removed the required property
////from the response with the status - breaking
removed the required property
////from the response with the status - breaking
removed the required property
/////from the response with the status - breaking
removed the required property
/////from the response with the status - breaking
removed the required property
/////from the response with the status - breaking
removed the required property
/////from the response with the status - breaking
removed the required property
/////from the response with the status - breaking
removed the required property
/////from the response with the status - breaking
removed the required property
/////from the response with the status - breaking
removed the required property
/////from the response with the status - warning
removed the optional property
/////from the response with the status - warning
removed the optional property
/////from the response with the status - warning
removed the optional property
/////from the response with the status - warning
removed the optional property
/////from the response with the status - warning
removed the optional property
/////from the response with the status - warning
removed the optional property
/////from the response with the status - warning
removed the optional property
/////from the response with the status - warning
removed the optional property
/////from the response with the status
- breaking
- info
added the required property
////to the response with the status - info
added the required property
////to the response with the status
- info