Crates.io | bitpanda-csv |
lib.rs | bitpanda-csv |
version | 0.2.1 |
source | src |
created_at | 2022-10-03 10:12:06.490514 |
updated_at | 2023-05-22 09:05:10.947252 |
description | A Rust library to parse the Bitpanda trades exported as CSV from your trades history |
homepage | https://github.com/veeso/bitpanda-csv |
repository | https://github.com/veeso/bitpanda-csv |
max_upload_size | |
id | 678889 |
size | 47,092 |
~ A parser for the Bitpanda Trades CSV ~
Developed by @veeso
Current version: 0.2.1 (23/05/2023)
bitpanda-csv is a Rust library to parse the Bitpanda trades exported as CSV from your trades history.
bitpanda-csv = "^0.2"
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<Trade> = BitpandaTradeParser::parse(reader).expect("failed to parse CSV");
}
Add to your Cargo.toml the async
feature.
If you don't need the sync stuff, you can disable the default features then.
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();
}
The developer documentation can be found on Rust Docs at https://docs.rs/bitpanda-csv
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:
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
View bitpanda-csv's changelog HERE
bitpanda-csv is licensed under the MIT license.
You can read the entire license HERE