kalshi_batch_get_market_candlesticks
Batch fetch candlestick data for multiple markets, supporting up to 100 tickers per request and grouping results by market. Optionally includes a synthetic initial candle to maintain price continuity.
Instructions
Batch Get Market Candlesticks Endpoint 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) Calls GET /markets/candlesticks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_ts | Yes | End timestamp in Unix seconds | |
| start_ts | Yes | Start timestamp in Unix seconds | |
| market_tickers | Yes | Comma-separated list of market tickers (maximum 100) | |
| period_interval | Yes | Candlestick period interval in minutes | |
| include_latest_before_start | No | If true, prepends the latest candlestick available before the start_ts. This synthetic candlestick is created by: 1. Finding the most recent real candlestick before start_ts 2. Projecting it forward to the first period boundary (calculated as the next period interval after start_ts) 3. Setting all OHLC prices to null, and `previous_price` to the close price from the real candlestick |