kraken-sdk
High-level Rust SDK for Kraken WebSocket API v2 with sub-microsecond orderbook operations.
Quick Start
Add to Cargo.toml:
[]
= "0.1"
= { = "1", = ["full"] }
Example code:
use *;
async
Features
- Sub-microsecond orderbook — 3.5ns spread calculation, 100ns delta updates
- L2 + L3 orderbooks — Price levels and individual order tracking
- CRC32 validation — Automatic checksum verification on every update
- Auto-reconnect — Exponential backoff with circuit breaker
- Financial precision — rust_decimal throughout (no floating point errors)
Optional Features
# Prometheus metrics
= { = "0.1", = ["metrics"] }
# Authenticated trading
= { = "0.1", = ["auth"] }
Documentation & Examples
- Full Documentation: https://miny.mintlify.app
- Example Integrations: https://github.com/hitakshiA/Havklo_sdk
Part of Havklo
This crate is part of the Havklo SDK workspace.
License
MIT