--- id: python-kraken-sdk version: "3.3.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # python-kraken-sdk — Command-line tool and collection of REST and websocket clients to interact with the Kraken Crypto Asset Exchange. License: permissive · Maintenance: active · Downloads: 131.1K/mo ## What it is and what it does This is an unofficial Python SDK for the Kraken Crypto Asset Exchange, providing both programmatic and command-line access to Spot, xStocks, and Futures trading. It wraps Kraken's REST and WebSocket APIs with synchronous and asynchronous clients, custom exception handling, and a CLI tool that handles authentication in the background. The package supports public endpoints (market data, server time) and private endpoints (account balances, trading) across both Spot and Futures markets. The SDK is built on standard async libraries (aiohttp, websockets) and includes example scripts and pytest test coverage. It is actively maintained and tested against live API endpoints. The authors explicitly disclaim responsibility for trading losses and note this is independent third-party software not endorsed by Kraken or Payward Ltd. Use it for: - Build automated trading bots that monitor Spot or Futures markets and execute orders programmatically. - Query account balances, open positions, and trade history without writing raw HTTP requests. - Stream real-time order book or trade data via WebSocket for low-latency market monitoring. - Access Kraken's public market data (candles, ticker, spreads) for backtesting or analysis. - Prototype trading strategies using the async client for concurrent API calls. - Use the CLI to manually query Kraken endpoints for debugging or ad-hoc operations. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides REST and WebSocket clients for trading on Kraken's Spot and Futures markets, plus a command-line interface for direct API access. Yes, with conditions. Install if you are building a Kraken trading application and want a maintained, low-friction SDK with both sync and async support. Do not install if you require guaranteed official support or cannot tolerate third-party software risk—this is explicitly unofficial and the authors disclaim liability for losses. Pin the version to avoid unexpected behavior on new releases, as recommended in the documentation. ## Install pip install python-kraken-sdk uv add python-kraken-sdk poetry add python-kraken-sdk ## Installing python-kraken-sdk Before you install: Low friction install with six common runtime dependencies (requests, websockets, click, cloup, orjson, aiohttp). Package is actively maintained with a release 38 days ago and recent commits; supports current Python versions (3.11–3.14). License in practice: Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions. Quickstart: pip install python-kraken-sdk from kraken.spot import SpotClient client = SpotClient(key="", secret="") print(client.request("POST", "/0/private/Balance")) Requires Kraken API keys (generated at https://www.kraken.com/u/security/api for Spot or https://futures.kraken.com/trade/settings/api for Futures) and Python >=3.11. Verify before relying: - Whether all Kraken Spot and Futures API endpoints are fully implemented or if some require direct request() calls. - Rate-limiting behavior and retry logic when hitting Kraken's API throttles. - Whether xStocks capability is feature-complete or still in development. ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 131.1K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags kraken api client python, crypto trading sdk, spot futures websocket, kraken rest client, exchange api wrapper, async crypto trading, kraken cli tool, kraken-exchange, trading-automation, async-client [View on SkillFed](https://skillfed.io/packages/python-kraken-sdk) · [View on PyPI](https://pypi.org/project/python-kraken-sdk/)