Top Builders
Explore the top contributors showcasing the highest number of app submissions within our community.
Kraken WebSocket API
The Kraken WebSocket API provides event-driven, real-time access to Kraken's spot and futures markets. Version 2 (v2) is the current API, offering public feeds for market data (no authentication required) and private authenticated feeds for account events and order management. WebSocket v2 consolidates order status and fill events into a single executions channel, replacing the separate streams from v1.
| General | |
|---|---|
| Developer | Kraken (Payward Inc.) |
| Type | WebSocket API (real-time streaming) |
| License | Commercial API (free with Kraken account) |
| Documentation | docs.kraken.com |
| GitHub | krakenfx/api-go |
Core Features
- Public feeds (no auth): ticker, order book (L2), and trade streams available without a Kraken account.
- Private authenticated feeds: execution events, balance updates, and order management.
- Configurable order book depth: 10, 25, 100, 500, or 1,000 levels with CRC32 checksum for integrity verification.
- Level 3 data: per-order
orderschannel (authenticated) for full depth-of-market. - Multi-symbol subscriptions: subscribe to multiple instruments in a single message.
- Request/response correlation:
req_idfield for matching responses to requests. - Futures support: separate WebSocket endpoint for futures market data and order management.
Endpoints
| Endpoint | URL |
|---|---|
| Public (spot, v2) | wss://ws.kraken.com/v2 |
| Private (spot, v2) | wss://ws-auth.kraken.com/v2 |
| Futures | wss://futures.kraken.com/ws/v1 |
| Colocation (spot) | colo-london.vip-ws.kraken.com |
Public Channels
| Channel | Description |
|---|---|
ticker | Best bid/offer, last trade price, 24h OHLCV, VWAP, and price change percentage |
book | Aggregated order book (L2) with configurable depth and CRC32 integrity checksum |
trade | Trade events with side, quantity, price, order type, trade ID, and RFC3339 timestamp |
Snapshots are sent on subscription by default ("snapshot": true). The ticker channel supports "bbo" (best bid/offer changes) or "trades" as the event trigger.
Private Channels (Authenticated)
| Channel | Description |
|---|---|
executions | Order status updates and fill events (replaces v1 openOrders and ownTrades) |
balances | Account balance changes in real time |
| User Trading | Add, amend, and cancel orders via WebSocket without a REST roundtrip |
Authentication for private feeds:
- Call
GET /0/private/GetWebSocketsTokenvia REST using your API credentials - Use the returned token (valid 15 minutes) in the subscribe message
- Include the token as:
{"event": "subscribe", "subscription": {"name": "...", "token": "..."}}
Tools and Resources
- WebSocket v2 Documentation: full channel specs and message format reference.
- Authentication Guide: step-by-step WebSocket token generation.
- Official Go SDK: covers Spot and Derivatives WebSocket connections.
- Python SDK (community): async WebSocket client with built-in reconnection handling.
- Kraken CLI:
kraken wscommands for WebSocket streaming from the terminal.
Ecosystem and Integrations
- Rate limits are shared across REST, WebSocket, and FIX for the same API key.
- Colocation endpoints are available via the Beeks Group for institutions requiring sub-millisecond access.
- Commercial redistribution of market data streams requires prior approval from marketdata@kraken.com.
- The official Go SDK supports both Spot and Derivatives WebSocket under a single import.
Subscribe to public feeds immediately at wss://ws.kraken.com/v2 without any authentication. For private feeds, generate a WebSocket token first via the REST token endpoint.
kraken Kraken Websocket api AI technology Hackathon projects
Discover innovative solutions crafted with kraken Kraken Websocket api AI technology, developed by our community members during our engaging hackathons.





