A dead simple crypto-balance calculator
I recently started experimenting with cryptocurrencies and I wanted to have a simple snippet that tells me my current, would-be balance โ the current value of all my assets in their original buy-in fiat.
- Log your assets in the assets.json (see the example.json for help)
- crpytos should contain all your transactions
- fiats should show the remaining balance you have at the exchange(s)
- Run
node index
50.00EUR
51.00EUR -> 62.60EUR +22.75%
-------------------------------------
112.60EUR
100.00USD
500.00USD -> 816.30USD +63.26%
-------------------------------------
916.30USD
This is only a snippet, nothing more. I was too lazy doing something else...