Simple CLI tool to get the current stock value and high and low value of stocks for different interval.
curl https://raw.githubusercontent.com/arulrajnet/stockinfo-cli/main/stockinfo.py | sudo tee /usr/local/bin/stockinfo
sudo chmod +x /usr/local/bin/stockinfo
By default it will get indian stock market index stocks
stockinfo
To get the high and low value for different intervals
stockinfo -i 5d,1m,3m,1y
To get for different stocks
stockinfo -s META,AAPL,AMZN,NFLX,GOOG
Every month I buy a Index mutual fund. I want to buy that on a best day in last 30 days. The high and low value information of index stocks on different intervals gives the data to take decision.
These are points in my mind while writing this
- Very simple tool to give current value and high and low value for different interval
- No more external module dependencies
- Works with Python3 only
Earlier I used these scrips which are depends on Google Finance API. Those are stopped working because of google pulled the plug.
This repo is using Yahoo Finance API 😃 I heard your voice, refer for alternatives for the future.
For example
alias stockfaang="stockinfo -s META,AAPL,AMZN,NFLX,GOOG"
alias stockindia="stockinfo -s %5EBSESN,%5ENSEI"
- Create a issue with label bug
- Create PR if you know the fix
- Create a issue with label enhancement
- Start discussion with maintainer
- Create PR once finalized
Mostly don't want to add any extra feature if its deviate from why-this
Author
@arulrajnet |