Luno API Client written in Rust Language for Rustaceans :)
The Luno API wrapper written in rust of rust in rust prorgram https://www.luno.com/en/developers/api.
luno_rs = "0.1.1"
or luno_rs = { git="https://github.com/borngraced/luno-rs"}
API_KEY=myapikey
API_SECRET=myapisecret
use luno_rs::Luno;
#[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_rs::Luno::init(key, secret).await;
let balance = luno.get_all_balance().await;
assert!(balance.is_ok());
let all_balance: Vec<Balance> = balance.unwrap();
print!("{balance:#?}")
}
feel free to work on any of the todos:)