cliStocksTracker
A command line stock market / portfolio tracker originally insipred by Ericm's Stonks program, featuring unicode for incredibly high detailed graphs even in a terminal.
Installation
This project is still in Beta, so there is no executable packaged with the project.
Requirements:
- Python >= 3.6.9
- plotille >= 3.7.2
- numpy >= 1.19.5
- yfinance >= 0.1.55
- pytz >= 2021.1
- colorama >= 0.4.4
Manual
$ git clone https://github.com/ConradSelig/cliStocksTracker
$ cd cliStocksTracker
$ python3 -m pip install -r requirements.txt
Usage
$ python3 cliStocksTracker.py
Configuration
cliStocksTracker relies on two config files, "config" and "stocks_config".
config
frame:
width: [ graph width ]
height: [ graph height ]
kwargs:
independent_graphs: [ True | False ]
timezone: [ pytz timezone stamp (ex. "America/New_York", "Asia/Shanghai", etc) ]
round_mode: [math | down]
If indepentant_graphs is True, all the given stocks will be graphed on the same plot, otherwise all of the given stocks will be printed on independent plots. There is currently no grouping of stocks, either manual or automatic (planned).
All keys in the config file are required.
stocks_config
[ stock symbol ]:
graph: [ True | False ]
owned: [ float ]
bought_at: [ float ]
[ stock symbol ]:
graph: [ True | False ]
owned: [ float ]
bought_at: [ float ]
...
Each stock symbol has three additional config settings:
- "graph": Determins if a graph is plotted of this symbol
- "owned": Count of the number of stocks owned of this symbol
- "bought_at": Price the stocks we're originally bought at, this is used to calculate portfolio delta.
There is currently no support for stocks of the same label being bought at different prices (planned).
There is currently no support for custom selection of symbol colors within a graph (planned).
All keys in the stocks_config file are optional.