Go to file
Jyotirmoy Bandyopadhayaya b7c73fc964
Completed the assignment
2022-11-28 13:06:05 +05:30
data initial commit 2021-08-08 19:46:23 +08:00
src Completed the assignment 2022-11-28 13:06:05 +05:30
.gitignore initial commit 2021-08-08 19:46:23 +08:00
README.md Update README.md 2022-11-07 11:42:04 +08:00
package.json Completed the assignment 2022-11-28 12:53:40 +05:30
yarn.lock Completed the assignment 2022-11-28 12:53:40 +05:30

README.md

Question 1 - Programming

We're looking at your programming ability. It must not only work, it should be maintainable.

Let us assume you are a crypto investor. You have made transactions over a period of time which is logged in a CSV file at the data directory. Write a command line program that returns the latest portfolio value per token in USD

The program should be ran like this

npm run start

On running, it should return the latest portfolio value per token in USD

The CSV file has the following columns

  • timestamp: Integer number of seconds since the Epoch
  • transaction_type: Either a DEPOSIT or a WITHDRAWAL
  • token: The token symbol
  • amount: The amount transacted

Portfolio means the balance of the token where you need to add deposits and subtract withdrawals. You may obtain the exchange rates from cryptocompare where the API is free. You should write it in Node.js as our main stack is in Javascript/Typescript and we need to assess your proficiency.

Submission

Please take no more than 2 hours to finish. We do not track time, hence you can start and end at your own time. Your answers should comprise of the following

  • Source code that you used for deriving the results
  • README that explains various design decisions that you took.

Commit your answers in a private Github repository(it's free), please do not fork as other candidates will see your answers. Add Zan(liangzan), Ben(BenPropine) as collaborators then inform us that it is done at zan@propine.com, ben.nguyen@propine.com.