Websocket API
Connection endpoint
wss://cryptolisting.wsQuery parameters
Parameter
Required
Description
Example
Connection lifecycle
Client Server
| |
|--- WSS handshake + API key ------→ |
| |-- Validate key
| |-- Check rate limits
| |-- Check connection limits
|←---- 101 Switching Protocols ------|
| |
|←---- Welcome message --------------| (immediate)
| |
|←---- Heartbeat --------------------| (every 30s)
|←---- Heartbeat --------------------|
| |
|←---- Announcement -----------------| (when detected)
| |
|←---- PING ------------------------ | (every 15s)
|--- PONG -------------------------→ |
| |
|←---- Close (1000, key_expired) ----| (if key expires)
| |1. Handshake
HTTP Code
Reason
2. Welcome message
3. Heartbeats
4. Ping/Pong
5. Announcements
6. Disconnection
Client-to-server messages
Last updated
Was this helpful?