# Kraken Spot WebSocket API v2

**Canonical:** https://apis.io/apis/kraken/kraken-spot-websocket-api-v2/  
**Provider:** Kraken — https://apis.io/providers/kraken/  
**Base URL:** wss://ws.kraken.com/v2  
**Documentation:** https://docs.kraken.com/api/docs/websocket-v2/ping

Kraken Spot WebSocket API v2 is one of 24 APIs that [Kraken](https://apis.io/providers/kraken/) publishes on the [APIs.io](https://apis.io/) network, described by an AsyncAPI event-driven specification. Tagged areas include Spot, WebSocket, Market Data, and Trading. The published artifact set on APIs.io includes API documentation, an API reference, authentication docs, and an AsyncAPI specification.

Real-time market data and private user data over WebSocket v2 using subscribe/unsubscribe semantics. Public channels include ticker (L1), book (L2), trade, ohlc, instrument, and admin frames (status, heartbeat, ping/pong). Authenticated channels include executions and balances. Trading methods include add_order, amend_order, edit_order, cancel_order, cancel_all, cancel_on_disconnect, batch_add, and batch_cancel. The authenticated endpoint requires a token obtained from the Spot REST GetWebSocketsToken operation.

## Machine-readable artifacts (16)

- **Documentation** — https://docs.kraken.com/api/docs/category/websocket-v2/
- **APIReference** — https://docs.kraken.com/api/docs/websocket-v2/ping
- **Authentication** — https://docs.kraken.com/api/docs/guides/spot-ws-auth
- **AsyncAPI** — https://raw.githubusercontent.com/api-evangelist/kraken/refs/heads/main/asyncapi/kraken-asyncapi.yml
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/kraken/refs/heads/main/apis.yml
- **Arazzo** — https://raw.githubusercontent.com/api-evangelist/kraken/refs/heads/main/arazzo/_index.yml
- **Arazzo** — https://raw.githubusercontent.com/api-evangelist/kraken/refs/heads/main/arazzo/kraken-amend-open-order-workflow.yml
- **Arazzo** — https://raw.githubusercontent.com/api-evangelist/kraken/refs/heads/main/arazzo/kraken-balance-aware-buy-workflow.yml
- **Arazzo** — https://raw.githubusercontent.com/api-evangelist/kraken/refs/heads/main/arazzo/kraken-cancel-and-replace-order-workflow.yml
- **Arazzo** — https://raw.githubusercontent.com/api-evangelist/kraken/refs/heads/main/arazzo/kraken-earn-allocate-and-confirm-workflow.yml
- **Arazzo** — https://raw.githubusercontent.com/api-evangelist/kraken/refs/heads/main/arazzo/kraken-fund-futures-wallet-workflow.yml
- **Arazzo** — https://raw.githubusercontent.com/api-evangelist/kraken/refs/heads/main/arazzo/kraken-futures-account-snapshot-workflow.yml
- **Arazzo** — https://raw.githubusercontent.com/api-evangelist/kraken/refs/heads/main/arazzo/kraken-place-futures-order-workflow.yml
- **Arazzo** — https://raw.githubusercontent.com/api-evangelist/kraken/refs/heads/main/arazzo/kraken-preflight-place-spot-order-workflow.yml
- **Arazzo** — https://raw.githubusercontent.com/api-evangelist/kraken/refs/heads/main/arazzo/kraken-reconcile-trade-history-workflow.yml
- **Arazzo** — https://raw.githubusercontent.com/api-evangelist/kraken/refs/heads/main/arazzo/kraken-withdraw-funds-workflow.yml

## Other Kraken APIs (12)

- [Kraken Spot WebSocket API v1 (Legacy)](https://apis.io/apis/kraken/kraken-spot-websocket-api-v1-legacy/)
- [Kraken Futures WebSocket API](https://apis.io/apis/kraken/kraken-futures-websocket-api/)
- [Kraken FIX API](https://apis.io/apis/kraken/kraken-fix-api/)
- [Kraken NFT API](https://apis.io/apis/kraken/kraken-nft-api/)
- [Kraken Earn API](https://apis.io/apis/kraken/kraken-earn-api/)
- [Kraken Embed REST API](https://apis.io/apis/kraken/kraken-embed-rest-api/)
- [Kraken OAuth REST API](https://apis.io/apis/kraken/kraken-oauth-rest-api/)
- [Kraken Ramp REST API](https://apis.io/apis/kraken/kraken-ramp-rest-api/)
- [Kraken Custody REST API](https://apis.io/apis/kraken/kraken-custody-rest-api/)
- [Kraken OTC REST API](https://apis.io/apis/kraken/kraken-otc-rest-api/)
- [Kraken Prime REST + WebSocket + FIX API](https://apis.io/apis/kraken/kraken-prime-rest-websocket-fix-api/)
- [Kraken Account API](https://apis.io/apis/kraken/kraken-account-api/)

## Tags

Spot, WebSocket, Market Data, Trading

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/kraken/kraken-spot-websocket-api-v2/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/kraken/.
