https://github.com/veeso/bitpanda-csv
A parser for the Bitpanda Trades CSV
https://github.com/veeso/bitpanda-csv
bitpanda bitpanda-csv rust rust-lang
Last synced: 24 days ago
JSON representation
A parser for the Bitpanda Trades CSV
- Host: GitHub
- URL: https://github.com/veeso/bitpanda-csv
- Owner: veeso
- License: mit
- Created: 2022-10-03T10:02:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-22T09:05:00.000Z (almost 2 years ago)
- Last Synced: 2025-03-11T10:50:16.568Z (about 2 months ago)
- Topics: bitpanda, bitpanda-csv, rust, rust-lang
- Language: Rust
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# bitpanda-csv
~ A parser for the Bitpanda Trades CSV ~
Developed by @veeso
Current version: 0.2.1 (23/05/2023)
---
- [bitpanda-csv](#bitpanda-csv)
- [About bitpanda-csv ๐ผ](#about-bitpanda-csv-)
- [Get started ๐](#get-started-)
- [Add bitpanda-csv to your Cargo.toml ๐ฆ](#add-bitpanda-csv-to-your-cargotoml-)
- [Parse CSV](#parse-csv)
- [Parser CSV (async)](#parser-csv-async)
- [Documentation ๐](#documentation-)
- [Support the developer โ](#support-the-developer-)
- [Contributing and issues ๐ค๐ป](#contributing-and-issues-)
- [Changelog โณ](#changelog-)
- [License ๐](#license-)---
## About bitpanda-csv ๐ผ
bitpanda-csv is a Rust library to parse the Bitpanda trades exported as CSV from your trades history.
---
## Get started ๐
### Add bitpanda-csv to your Cargo.toml ๐ฆ
```toml
bitpanda-csv = "^0.2"
```### Parse CSV
```rust
use bitpanda_csv::{BitpandaTradeParser, Trade};
use std::fs::File;fn main() {
let reader = File::open("./test/bitpanda.csv").expect("could not open CSV file");
let trades: Vec = BitpandaTradeParser::parse(reader).expect("failed to parse CSV");
}
```### Parser CSV (async)
Add to your Cargo.toml the `async` feature.
If you don't need the sync stuff, you can disable the default features then.```rust
use bitpanda_csv::{AsyncBitpandaTradeParser, Trade};
use tokio::fs::File;
use tokio::io::BufReader;#[tokio::main]
async fn main() {
let file = File::open("./test/bitpanda.csv").await.expect("could not open CSV file");
let trades = AsyncBitpandaTradeParser::parse(BufReader::new(file))
.await
.unwrap();
}
```---
## Documentation ๐
The developer documentation can be found on Rust Docs at
---
## Support the developer โ
If you like bitpanda-csv 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-csv, feel free to open an issue or a PR.Please follow [our contributing guidelines](CONTRIBUTING.md)
---
## Changelog โณ
View bitpanda-csv's changelog [HERE](CHANGELOG.md)
---
## License ๐
bitpanda-csv is licensed under the MIT license.
You can read the entire license [HERE](LICENSE)