Skip to content

WebSocket API requests ​

WebsocketAPIClient exposes awaitable Kraken Spot WebSocket API operations. It is not a Futures WebSocket request client. Check the client reference for supported operations.

Use await and try/catch just as you would with a REST API call. The SDK matches responses to requests and manages the WebSocket connection for you. Requests over a persistent WebSocket can offer lower overhead and latency, depending on the exchange, network and workload.

Requests and subscriptions ​

A request returns one result. Use public streams for continuous market data and account updates to follow account and order changes. Request responses do not replace these subscriptions.

Use the account access guide for credentials and permissions before making authenticated requests. For order submissions, keep account updates connected and follow the order management workflow.

Recover an uncertain outcome ​

A connection can fail after an exchange processes a request but before the response arrives. Follow account updates and reconcile uncertain outcomes before retrying an order.

Built by Siebly. Open source SDKs for exchange APIs.