Client libraries for Kraken's APIs. Each SDK is a typed, async client with methods grouped into market data, account, trading, and subscriptions. It takes care of request signing, connections and reconnects, and order-book maintenance.
One SDK design, implemented per language under its own top-level directory.
- One client for market data, account, trading, and subscriptions
- Spot REST and Spot WebSocket v2
- Futures streams and order entry on the Unified WebSocket
- Request signing, nonce handling, and WebSocket token refresh
- Reconnect with resubscribe
- Order books built from snapshot and deltas, CRC32-checked on each update
- Prices, volumes, and balances as decimals, not floating point
- Errors with
code,category,retryable,request_id, andmessage - Events for connection and client status, order lifecycle, rate limits, stream and book gaps, queue depth, and callback latency
- API keys kept in memory and cleared when the client closes
- Spot pairs in modern format (
BTC/USD); Futures symbols as venue wire strings (PF_XBTUSD)
| Language | Path | Status |
|---|---|---|
| Rust + tokio | rust/ |
Spot trading + portfolio; Futures streams and orders. |
| C++ · Python · Go · TypeScript/JS | (coming) | Coming soon. |
API reference and guides for Kraken's APIs and SDKs: https://docs.kraken.com/home/sdks
See CONTRIBUTING.md for general contribution guidelines. Build, test and code-style rules are per binding and live in that language's own guide.
Apache License 2.0 — see LICENSE.
See DISCLAIMER.md.
See TRADEMARK.md.