Here's a python script to plot the price of cryptocurrencies directly on the command line.
This a single python script, which depends on the requests
, pandas
, and numpy
packages.
It uses the Symbols for Legacy Computing
unicode block for plotting directly inside the terminal emulator. Most
terminals based on the Gnome terminal support these characters.
I make no apologies for the garish color scheme, which is based on what I imagine people in the 1980s imagined the future would look like. You can edit the ANSI color codes in the source to suit.
This pulls price data from the Kraken exchange, but it is not affiliated with Kraken in any way. It's intended as a minimal demo of interfacing with Kraken's REST API, as well as a demonstration of the possibilities of semigraphics characters in modern terminal emulators.
To changes colors, styles, defaults, etc, edit the python source code. This is provided as a self-contained demonstration of calling Kraken's REST API and plotting using unicode characters in the command line. The expectation is that users will modify/incorporate parts of this into their own script.