Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chmoder/toy_payments_engine
https://github.com/chmoder/toy_payments_engine
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/chmoder/toy_payments_engine
- Owner: chmoder
- Created: 2021-06-30T01:27:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-04T19:29:08.000Z (over 3 years ago)
- Last Synced: 2023-04-16T12:07:42.338Z (over 1 year ago)
- Language: Rust
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Toy Payments Engine
Toy Payment Engine is a simple transaction processor written in Rust 🦀!
It's function is to process transactions and build an account summary showing various balances and status. This application runs on command line taking a filepath to a CSV file containing transactions. The account summary output will be sent to STDOUT.
Example input file layout:
```csv
type, client, tx, amount
deposit, 1, 1, 1.1
```Example output layout:
```csv
client,available,held,total,locked
1,1.6235,0.0000,1.6235,false
```### usage:
`cargo run --transactions.csv > accounts.csv`