Expand description

kraken-websockets-token - Convenience crate to get Kraken WebSockets API tokens

Example

use kraken_websockets_token::get_websockets_token;

fn main() {

  const API_SECRET: &str = "<my API secret>";
  const API_KEY: &str = "<my API key>";

  match get_websockets_token(API_SECRET, API_KEY) {
    Ok(token) => println!("My token is: {}", token),
    Err(err) => println!("There was an error: {}", err),
  }
}

Functions

Gets your Kraken WebSockets API token