luno_rust_api/
lib.rs

1///! Rust Luno Api client (async rust)
2///
3/// INSTALLATION
4/// Add to Cargo.toml
5/// -> luno-rust-api = "0.0.1"
6///
7///
8/// USAGE
9///  requires a key and secret that can be found in your luno account settings
10///```rust
11/// use env;
12/// use luno_rust_api::Luno;
13///
14/// #[tokio::test]
15/// async fn main(){
16/// dotenv::dotenv().ok();
17///	let key = env::var("API_KEY").expect("Api Key doesn't exist yet, please add");
18///	let secret = env::var("API_SECRET").expect("Api Key Secret doesn't exist yet, please add");
19///	let luno = Luno::init(key, secret).await;
20///	let tickers = luno.get_all_balance().await;
21///	println!("{:#?}", json!(tickers.as_ref().unwrap())); // data can be serialized to json)
22///	assert_eq!(true, tickers.is_ok());
23/// }
24/// ```
25///
26///
27mod luno;
28pub use luno::Luno;