Documentation Index
Fetch the complete documentation index at: https://docs.kalshi.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Thecfbenchmarks_value channel streams real-time CF Benchmarks value updates through the Predictions API WebSocket.
Each update includes:
index_id: the CF Benchmarks index ID (for exampleBRTI)received_at: when Kalshi received the upstream frame (unix ms)data: the raw CF Benchmarks JSON frameavg_60s_data: trailing 60-second average metadatalast_60s_windowed_average_15min: quarter-hour final-minute accumulation metadata (only present in the active final-minute window)
Access and authentication
- Use the same authenticated WebSocket connection flow as other Predictions WebSocket channels.
Channel subscription workflow
1) Subscribe to the channel
You can seedindex_ids in the initial subscribe, or subscribe first and add indices later.
2) Discover available index IDs
cfbenchmarks_value_indexlist
3) Add or remove tracked index IDs
Add:"all" to receive all index IDs:
Message format
Examplecfbenchmarks_value payload:
Averaging semantics
avg_60s_data
- Window is trailing and per tick:
[source_ts_ms - 60000, source_ts_ms) window_sizecounts prior ticks only- If there are no prior ticks in the trailing window, average falls back to the current tick value
last_60s_windowed_average_15min
- Field is only present in the final minute before quarter-hour close (
:00,:15,:30,:45) - Active accumulation window is:
(quarter_close_ts_ms - 60000, quarter_close_ts_ms] - Start boundary tick is excluded and close tick is included
- This produces second-indexed counts:
:01 -> 1:14 -> 14:59 -> 59- close tick (
:00/:15/:30/:45) ->60
- Field is omitted outside that final-minute window
Integration notes
- If you subscribe to the channel without any
index_ids, no value events flow until you add indices or switch to"all". - Duplicate or out-of-order upstream source timestamps are ignored.
sididentifies the subscription stream; use it forupdate_subscriptionandunsubscribe.
Common errors
- Missing
index_idsforsubscribe_indicesorunsubscribe_indicesreturns:type: "error"msg.code: 24msg.msg: "Index IDs required"
- Unsupported actions return standard websocket
errorresponses.