Using the Derivatives WebSocket today? It will be decommissioned on
1 March 2027. The Unified WebSocket replaces it and adds order entry. See
Migrate from the Derivatives WebSocket.
asset_class
to select Spot or Derivatives instruments. Channel availability depends on the
asset class.
The Unified WebSocket uses the same v2 message format as the Spot
WebSocket v2, with normalised JSON objects, RFC 3339 timestamps, and
sequential trade IDs.
For connection details, ping/pong, and rate-limit behaviour, see the
WebSocket overview.
Why use the Unified WebSocket
Trade on the same socket
Order entry, market data and account updates share one connection. Add, amend, cancel, batch orders, cancel-all and a dead man’s switch.
Faster data
Median publish latency of 9.9µs, 15× faster than the Derivatives WebSocket it replaces.
SDKs to speed up onboarding
The Kraken API SDK handles authentication, token refresh, reconnects and order book checksums.
One key, one format
Use your Kraken API key and the same v2 message format as the Spot WebSocket v2.
Trade on the same socket
The Unified WebSocket adds order entry to the same socket as market data and account updates. You no longer need a separate REST or FIX connection to place and manage Derivatives orders.
Options market makers also get the read-only
rfqs and
quotes channels.
Faster data
Publish latency is the time from the gateway receiving an event to the update being written to your stream. Compared with the Derivatives WebSocket it replaces:These figures are measured at the gateway, so they exclude network transit to
you. They apply to Futures only.
SDKs to speed up onboarding
The Kraken API SDK for Rust (v0.2.0) supports Futures on the Unified WebSocket. It covers market data, private account streams and order entry. It handles authentication, token refresh, reconnects and order book checksums, and it rejects orders the venue would refuse before sending them. A Python SDK is in review.One key, one message format
- One API key. Private channels and trading use a Kraken API key and a
WebSocket token from
GetWebSocketsToken. You do not need a Derivatives API key or the signed-challenge flow. - One message format. Requests and responses follow the same v2 format as the Spot WebSocket v2, so code you write for one market carries over to the other.
- Checked books.
bookupdates carry CRC32 checksums, so you can detect and recover from a gap.
Endpoints
Authentication
Public channels need no authentication. Private channels and trading require a WebSocket token, retrieved via the Spot REST endpointGetWebSocketsToken
and sent in params.token on each private request. Request the token
with a Kraken API key that has the Access WebSocket API permission
(see API key permissions). This
applies to Derivatives too: Derivatives API keys and the Derivatives
WebSocket signed challenge are not used. Tokens are short-lived; obtain
a fresh token on each connection.
See WebSocket
authentication for the
full flow.
Asset class selection
Subscription and order messages that apply to a market include anasset_class field set to either spot or derivatives. This
determines which market the request applies to, allowing both markets
to be streamed and traded on the same connection.
asset_class: spot is planned for Q1 2027. Until then, use derivatives.book, trade, and executions accept spot or derivatives. Other
market-specific channels currently accept only derivatives.
The account-wide
balances and
ledgers channels cover
every asset class at once, so they reject asset_class rather than
accepting it. The account-wide
preferences channel does not
require asset_class.
Migrate from the Derivatives WebSocket
The Derivatives WebSocket is deprecated. Existing integrations keep working until 1 March 2027, when it will no longer be available. To migrate:- Get a Kraken API key with the Access WebSocket API permission, and
request a token with
GetWebSocketsToken. The Derivatives signed challenge is not used. - Connect to the Unified WebSocket at
wss://uws.kraken.com/v2/publicorwss://uws.kraken.com/v2/private. - Rewrite your messages to the v2 format. Requests use
method,paramsandreq_idinstead ofeventandfeed, and market channels takeasset_class: derivatives. Look up valid symbols with theinstrumentchannel. - Move your channels using the table below.
- Move order entry onto the socket if you place orders over Derivatives REST or FIX today.
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 a Spot or Derivatives order over the open connection.
ticker
Level 1 market data — top of book and recent trade summary.
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
Kraken API SDK (Rust)
Official SDK with Futures support on the Unified WebSocket.
WebSocket overview
Connection details, ping/pong, beta endpoints.
WebSocket authentication
How to request a WebSocket token with your API key.
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.