luno 0.3.0

An unofficial Rust wrapper for the Luno API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use luno::{Currency, LunoClient};

#[tokio::main]
async fn main() {
    let key = String::from("LUNO_API_KEY");
    let secret = String::from("LUNO_API_SECRET");

    let client = LunoClient::new(key, secret);

    match client.create_account(Currency::XBT, "My Account").await {
        Err(e) => eprintln!("{:?}", e),
        Ok(result) => {
            println!("{:?}", result);
        }
    }
}