When I started actively investing/speculating in cryptocurrencies, I wanted a simple tool to keep track of the values of my investments. I came up with a script that downloads the latest ticker data from CoinMarketCap and prints my cryptocurrency investments neatly in a simple table.
NOTE: This is not a wallet—it does not manage your investments, it does not store your cryptocurrencies, it cannot transfer money and it has no access to your private keys. It only gives you an overview of your current cryptocurrency investments!
- Julia — A high-level dynamic programming language designed to address the needs of high-performance numerical analysis and computational science
The script depends on the Requests package to function properly, so it must be installed first. Open a Julia REPL and type the following:
julia> Pkg.add("Requests")
Below are instructions on how to use the script. Make sure you have installed all prerequisites before trying to run it.
Invoke the script with the buy command to add coins to your wallet. For example, if you own 0.5 Bitcoin, add it to your wallet by typing julia cw.jl buy 0.5 bitcoin
. The script will add 0.5 bitcoin to your wallet, save it to your wallet file and display your wallet contents. The wallet file is called wallet.json and will be stored together with the cw.jl script file.
Much the same way you add coins, you can remove them with the sell command. Let's sell half of what we bought: julia cw.jl sell 0.1 bitcoin
Invoking the script without any commands shows the contents of your wallet: julia cw.jl