This repo contains 3 separate code bases that use the CoinGecko API to retrieve the current values of your coins. It's meant for education purposes only - these are by no means a complete/tested product.
You'll need to update a JSON array with the coin symbols you want and the units you have. After the apps run, the current dollar value and the total will be displayed.
To get all available coin symbols for your portfolio, go to this API response and search for your coins.
[
{
"coin": "bitcoin",
"units": 1.123
},
{
"coin": "ethereum",
"units": 37
},
{
"coin": "cardano",
"units": 10000
}
]
- A modern browser
- A text editor
- Edit the file "portfolio.js" with the coins you have, and the number of units.
- Open "portfolio.html in the browser.
- Python3 (though 2.7 may work as well with tiny adjustments)
- A text editor
- Update the portfolio variable in the file
portfolio.py
with the coins you have, and the number of units. - Use your console/terminal app to get to the
Python
folder, and runpython portfolio.py
from the command line.
- Node.JS installed (check https://nodejs.org/ to get the version that runs on your OS).
- Text editor
- Edit the file "portfolio.js" with the coins you have, and the number of units.
- run
node index
in theNode
folder. If you've installed NPM, you can also runnpm start
in theNode
folder.
The source is licensed under MIT license. Feel free to use it, change it, and do whatever you want with it ๐.
If you feel like this code is educational, entertaining, or useful to you in any way, drop me some ๐บ money in the shape of ETH/BAT/DAI/whatever at guy.wantsome.eth.