| Crates.io | luno_rust |
| lib.rs | luno_rust |
| version | 0.1.0 |
| created_at | 2022-10-26 15:41:22.056731+00 |
| updated_at | 2022-10-26 15:41:22.056731+00 |
| description | Luno API Wrapper in rust lang. |
| homepage | |
| repository | https://github.com/borngraced/luno-rs |
| max_upload_size | |
| id | 697999 |
| size | 18,881 |
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=myapisecretuse 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!(tickers.is_ok());
let all_balance: Vec<Balance> = balance.unwrap();
print!("{balance:#?}")
}
feel free to work on any of the todos:)