Stocks Notifier is a software which tracks real-time stock prices for a list of stocks and sends notifications when price of stock is lower than or equal to threshold value.
For docs, visit stocksnotifier.com
-
Clone the repo.
-
Copy
stocks.sample.json
tostocks.json
and edit the value to set the lower threshold value at which you want to get alert. -
Check Yahoo Finance page for naming convention, eg: for NSE stocks .NS has to be added after stock name.
-
Run go file
go run stocks-notifier.go .
Pass the directory where stocks.json is located. -
If you want to run this file in background:
nohup go run stocks-notifier.go . &
this will output logs to file named nohup.out