Messages
"""""heartbeat"""WebSockets
Connection Keep-Alive
Kalshi sends Ping frames every 10 seconds with body heartbeat.
Clients should respond with Pong frames.
WSS
/
Messages
"""""heartbeat"""apiKey
type:apiKey
API key authentication required for margin WebSocket connections.
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)