kraken-websockets-token - Convenience crate to get Kraken WebSockets API tokens
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),
}
}
This crate provides a convenient way to get Kraken WebSockets API tokens.
Please report any bugs or feature requests at:
Feel free to fork the repository and submit pull requests :)
IT COMES WITHOUT WARRANTY OF ANY KIND.
Copyright (C) 2021 by Alfie John
Contact me if you would like this licensed under something other than the GPL
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.