Skip to content

arulrajnet/stockinfo-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stock information in CLI

Simple CLI tool to get the current stock value and high and low value of stocks for different interval.

Install

curl https://raw.githubusercontent.com/arulrajnet/stockinfo-cli/main/stockinfo.py | sudo tee /usr/local/bin/stockinfo
sudo chmod +x /usr/local/bin/stockinfo

Examples

By default it will get indian stock market index stocks

stockinfo

Default Stock info

To get the high and low value for different intervals

stockinfo -i 5d,1m,3m,1y

Stock info with interval

To get for different stocks

stockinfo -s META,AAPL,AMZN,NFLX,GOOG

Stock info with different stocks

Why this?

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

Some background

Earlier I used these scrips which are depends on Google Finance API. Those are stopped working because of google pulled the plug.

GetStockInfo.py

stockmarketindia.py

This repo is using Yahoo Finance API 😃 I heard your voice, refer for alternatives for the future.

Tips

Create alias for different stocks

For example

alias stockfaang="stockinfo -s META,AAPL,AMZN,NFLX,GOOG"
alias stockindia="stockinfo -s %5EBSESN,%5ENSEI"

Contribute

Bug

  • Create a issue with label bug
  • Create PR if you know the fix

Feature ask

  • 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

License

MIT License.

Author

follow
@arulrajnet

About

Get the current and historic stock information in your terminal.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages