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
17
18
use luno::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.list_tickers().await {
        Err(e) => eprintln!("{:?}", e),
        Ok(result) => {
            if let Some(ticker) = result.tickers {
                println!("{:?}", ticker);
            }
        }
    }
}