This project generates the following reports, aggregating instructions to buy or sell sent by various clients to JP Morgan to execute in the international market:
- Amount in USD settled incoming everyday;
- Amount in USD settled outgoing everyday;
- Ranking of entities based on incoming and outgoing amount.
This project was built using Golang 1.12 for Ubuntu
This project requires the following packages to be installed:
- accounting: to format money and currency in reports
- easycsv: to parse the CSV file of instructions
You can install them at once by using the following script:
./go_get.sh
Use the following commands to compile then run the binary for this project:
# Compile the binary
go build
# Run the compiled binary
./instructions
The binary will be using the sample CSV file located within the same folder. Optionally, you can specify your own CSV file as follows:
./instructions -file=sample.csv
Use the following command to run the unit tests:
go test -v