Crates.io | bitpanda-api |
lib.rs | bitpanda-api |
version | 0.1.0 |
source | src |
created_at | 2023-05-18 15:21:59.211641 |
updated_at | 2023-05-18 15:21:59.211641 |
description | Rust client for Bitpanda API |
homepage | https://github.com/veeso/bitpanda-api-rs |
repository | https://github.com/veeso/bitpanda-api-rs |
max_upload_size | |
id | 868096 |
size | 54,598 |
~ Rust client for Bitpanda API ~
Developed by @veeso
Current version: 0.1.0 (18/05/2023)
bitpanda-api is a Rust client library for Bitpanda API. The library supports both the "private API" which requires the APIKEY and the public API. These data are exposed:
bitpanda-api = "^0.1.0"
use bitpanda_api::Client;
use bitpanda_api::model::AssetClass;
use bitpanda_api::model::ohlc::Period;
#[tokio::main]
async fn main() {
let client = Client::default().x_apikey(env!("X_API_KEY"));
// collect my last 20 trades
client.get_trades_ex(Some(20)).await.expect("failed to collect trades");
// get OHLC for BTC of the last 5 years
let btc = client
.get_assets(AssetClass::Cryptocurrency)
.await
.unwrap()
.into_iter()
.find(|asset| asset.symbol == "BTC")
.unwrap();
let ohlc = client.get_ohlc(Period::FiveYears, &btc.pid, "EUR").await.unwrap();
}
The developer documentation can be found on Rust Docs at https://docs.rs/bitpanda-api
If you like bitpanda-api and you're grateful for the work I've done, please consider a little donation ๐ฅณ
You can make a donation with one of these platforms:
Contributions, bug reports, new features and questions are welcome! ๐ If you have any question or concern, or you want to suggest a new feature, or you want just want to improve bitpanda-api, feel free to open an issue or a PR.
Please follow our contributing guidelines
View bitpanda-api's changelog HERE
bitpanda-api is licensed under the MIT license.
You can read the entire license HERE