Skip to main content
WSS
wss://api.elections.kalshi.com
Messages
apiKey
type:apiKey

API key authentication required for WebSocket connections. The API key should be provided during the WebSocket handshake.

Ping
type:string

Client sends Ping frame (0x9) to elicit Pong from Kalshi

Pong
type:string

Client replies to Ping with Pong Frame (0xA)

Ping
type:string

Kalshi sends Ping (0x9) with body 'heartbeat' to elicit Pong from client

Pong
type:string

Kalshi responds to client Ping with Pong frame (0xA)