luno_rust 0.1.0

Luno API Wrapper in rust lang.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use luno_rs::Luno;
use serde_json::json;
use std::env;

#[tokio::test] // any other async runtime can be used, not limited to tokio
async fn test_luno_async() {
	dotenv::dotenv().ok();
	let key = env::var("API_KEY").expect("Api Key doesn't exist yet, please add");
	let secret = env::var("API_SECRET").expect("Api Key Secret doesn't exist yet, please add");
	let luno = Luno::init(key, secret).await;
	let balance = luno.get_all_balance().await;

	assert!(balance.is_ok());
}