Endpoints
| Environment | Public | Private (auth) |
|---|---|---|
| v2 — Primary | wss://ws.kraken.com/v2 | wss://ws-auth.kraken.com/v2 |
| v2 — Beta | wss://beta-ws.kraken.com/v2 | wss://beta-ws-auth.kraken.com/v2 |
| v1 — Primary | wss://ws.kraken.com | wss://ws-auth.kraken.com |
| v1 — Beta | wss://beta-ws.kraken.com | wss://beta-ws-auth.kraken.com |
Authentication
Private channels require a WebSocket token, retrieved via the Spot REST endpointGetWebSocketsToken.
Tokens are short-lived; obtain a fresh token on each connection.
See WebSocket
authentication for the
full flow.
v2 vs v1
| Feature | v1 | v2 |
|---|---|---|
| Message format | Array | Normalised JSON object |
| Symbol format | XBT/USD | BTC/USD |
| Timestamp | Epoch sec, μs | RFC 3339 (2026-04-28T...) |
| L3 order-by-order book | — | ✅ |
| Book checksum | Updates only | Snapshot + updates |
| Trade ID | — | Sequential int |
| New features | Frozen | Active |
Quick start
book (L2)
Order book snapshots + incremental updates with CRC32 checksums.
executions
Private order acks, fills, and amends — the canonical order-state stream.
add_order
Place an order over the open WebSocket connection.
cancel_after
Dead-man’s switch — cancel all orders if the client stops checking in.
Connection management
Send aping at least every 60 seconds. On reconnect, resubscribe to
each channel and reconcile state — the
reconnection guide walks
through resubscription, sequence handling, and book recovery.
Related
WebSocket overview
Connection details, v1 vs v2, beta endpoints.
WebSocket authentication
Token retrieval and signed challenge flow.
Book checksum (v2)
Validate book consistency after every update.
L3 checksum (v2)
L3 order-by-order checksum logic.
Reconnection
Disconnect handling and resubscribe.
Choose your protocol
WebSocket vs FIX vs REST trade-offs.