return home
Features & How to use it
Note: you can use multiple stock symbols at once for example the command below will add both IBM and TSLA.
./stock add IBM,TSLA
Checking stocks manually
In order to simply check stock you can use the check command, it will display stock prices graph and percentage change over the past month. Theres 2 graphs you can choose between: 0 will display simple chart with simple ascii graph for the stock "close" price, 1 will display more advanced trading graph.
./stock check [stock_symbol] [0 or 1]
Checking stocks in background
You can just launch program with this command and it will check stocks time to time, sending you regular notifications and emails(its disabled untill you enter your email).
./stock &
However this alone is not enough, because the program doesnt know what stocks you want to be notified with and at what percentage the program should notify you if it dropped. So, read next.
Adding Stocks
You can add stocks you want to track, this is a required step if you want to run the app in background, it will sent you notifications if stock dropped by X value, if the X value is empty it will set it to default 5%.
./stock add [stock_symbol] [number]
Now, if you run ./stock in background, it will notify you if stock/stocks you added got dropped by [number]% over the past month
Removing Stocks
Stocks are being saved at the ./stock directory in file stock_list.json, you can either modify this list manually or use next 2 commands remove and edit.
./stock remove [stock_symbol]
Editing Stocks
Editing stocks is the same as adding, except it will not show an error, but change the existing in the list stock's percentage value for notifications described above.
./stock edit [stock_symbol] [number]
Related
Also feel free to checkout my similar content on my website!
example link