Crates.io | luno_sdk |
lib.rs | luno_sdk |
version | 0.1.2 |
source | src |
created_at | 2020-08-31 10:58:23.712781 |
updated_at | 2020-09-02 07:39:42.708563 |
description | unofficial rust wrapper for the Luno API |
homepage | |
repository | https://github.com/jdunnink/luno_api_sdk |
max_upload_size | |
id | 283018 |
size | 28,983 |
SDK in Rust for accessing the Luno exchange API.
This is an unofficial Rust API Wrapper for accessing the Luno Exchange API. Please read the License.
This module is a work in progress and is by no means ready to use in production.
This module is made for educational purposes and is not meant to be used in a real cryptocurrency trading application.
Any financial losses resulting from the use of this module, are solely the responsibility of the persons involved.
supported methods: (last updated: 17-08-2020)
todo:
example of use:
use luno_sdk::LunoClient;
use luno_sdk::Market;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let luno_client = LunoClient::new("api_key_id", "api_key_secret");
let resp = luno_client.get_ticker("XBTEUR");
println!("received reponse: {}", resp.await?.text().await?);
Ok(())
}