#api #kraken #api-bindings

kraken_api

kraken_api is a library for using both the public and private kraken.com APIs. It is currently a work in progress

6 releases

0.1.5 Jun 11, 2020
0.1.4 Jun 11, 2020

#29 in #kraken

MIT/Apache and GPL-2.0 licenses

8KB
155 lines

kraken_api

This is a library that provides access to the kraken.com APIs.

docs.rs

Usage

use std::error::Error;
use kraken_api::api::Kraken;

#[runtime::main]
async fn main() -> Result<(), Box<dyn Error + Send + Sync + 'static>> {
    // code to get key, secret and totp goes here
    // ......
    // ......
    
    let kraken = Kraken::new(key, secret, totp);

    kraken.start().await?;
}

Dependencies

~20MB
~435K SLoC