Skip to main content

Crate kraken_api_client

Crate kraken_api_client 

Source
Expand description

§Kraken Client

An async Rust client library for the Kraken exchange REST and WebSocket v2 APIs.

§Features

  • Full REST API support for Kraken Spot trading
  • WebSocket v2 API with automatic reconnection
  • Built-in rate limiting
  • Strong typing for all request/response types
  • Financial precision with rust_decimal

§Quick Start

use kraken_api_client::spot::rest::SpotRestClient;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = SpotRestClient::new();
    let time = client.get_server_time().await?;
    println!("Server time: {:?}", time);
    Ok(())
}

Re-exports§

pub use error::KrakenError;
pub use types::common::BuySell;
pub use types::common::OrderStatus;
pub use types::common::OrderType;

Modules§

auth
Authentication module for Kraken API.
error
Error types for the Kraken client library.
futures
Kraken Futures API client.
rate_limit
Rate limiting for Kraken API.
spot
Kraken Spot trading API clients.
types
Common types used across the Kraken client library.

Type Aliases§

Result
Result type alias using KrakenError