Crates.io | easybit |
lib.rs | easybit |
version | 0.0.1 |
source | src |
created_at | 2024-07-25 14:17:37.129063 |
updated_at | 2024-07-25 14:17:37.129063 |
description | A library for seamless integration with the Easybit.io API |
homepage | |
repository | https://github.com/starkbamse/rust-easybit.io |
max_upload_size | |
id | 1315076 |
size | 57,452 |
This is a Rust library for the easybit.io exchange API. It is a work in progress and is not all functionalities are ready for production use (KYC enforcement, order refunds). It was created to simplify my collaboration as a partner with easybit.io. I decided that contributing to the Rust community would be a good way to give back.
The Client
struct implements ZeroizeOnDrop
which shall overwrite the memory of where Client is stored when it goes out of scope. This is to prevent any sensitive information from being leaked on the heap. Thanks to the zeroize
crate for this.
That being said, this is not an official library and is not endorsed by easybit.io. Therefore, use it at your own risk. I am not responsible for any loss of funds or any other damages that may occur from using this library. Please ensure that you have read and understood the easybit.io API documentation before using this library, as well as the source code.
If you have any questions, please feel free to open an issue.
Add the following to your Cargo.toml
file:
[dependencies]
easybit = "0.0.1"
Then, you can use the library as follows:
use easybit::client::Client;
use std::env;
#[tokio::main]
async fn main() {
let client = Client::new(env::var("URL").expect("URL must be set"),
env::var("API_KEY").expect("API_KEY must be set"));
let account = client.get_account().await.unwrap();
println!("{:?}", account);
}
I suggest that you head over to the crate documentation to see all the available functions. You should also read the easybit.io API documentation to get a better understanding.
If you would like to contribute, please feel free to fork the repository and submit a pull request. I will review it as soon as possible.
This library is licensed under the MIT license.