https://github.com/veeso/bitpanda-api-rs
Rust Bitpanda API client
https://github.com/veeso/bitpanda-api-rs
bitpanda bitpanda-webapi rust rust-crate rust-lang
Last synced: over 1 year ago
JSON representation
Rust Bitpanda API client
- Host: GitHub
- URL: https://github.com/veeso/bitpanda-api-rs
- Owner: veeso
- License: mit
- Created: 2023-02-13T10:19:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-18T15:21:46.000Z (about 3 years ago)
- Last Synced: 2024-05-01T16:37:13.700Z (about 2 years ago)
- Topics: bitpanda, bitpanda-webapi, rust, rust-crate, rust-lang
- Language: Rust
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# bitpanda-api
~ Rust client for Bitpanda API ~
Developed by @veeso
Current version: 0.1.0 (18/05/2023)
---
- [bitpanda-api](#bitpanda-api)
- [About bitpanda-api ๐ผ](#about-bitpanda-api-)
- [Get started ๐](#get-started-)
- [Add bitpanda-api to your Cargo.toml ๐ฆ](#add-bitpanda-api-to-your-cargotoml-)
- [Query Bitpanda](#query-bitpanda)
- [Documentation ๐](#documentation-)
- [Support the developer โ](#support-the-developer-)
- [Contributing and issues ๐ค๐ป](#contributing-and-issues-)
- [Changelog โณ](#changelog-)
- [License ๐](#license-)
---
## About bitpanda-api ๐ผ
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:
- Public API
- Get assets
- Get OHLC for asset
- Private API
- Get transactions
- Get trades
- Get wallets
---
## Get started ๐
### Add bitpanda-api to your Cargo.toml ๐ฆ
```toml
bitpanda-api = "^0.1.0"
```
### Query Bitpanda
```rust
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();
}
```
---
## Documentation ๐
The developer documentation can be found on Rust Docs at
---
## Support the developer โ
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:
[](https://ko-fi.com/veeso)
[](https://www.paypal.me/chrisintin)
[](https://btc.com/bc1qvlmykjn7htz0vuprmjrlkwtv9m9pan6kylsr8w)
---
## Contributing and issues ๐ค๐ป
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](CONTRIBUTING.md)
---
## Changelog โณ
View bitpanda-api's changelog [HERE](CHANGELOG.md)
---
## License ๐
bitpanda-api is licensed under the MIT license.
You can read the entire license [HERE](LICENSE)