https://github.com/arulrajnet/stockinfo-cli
Get the current and historic stock information in your terminal.
https://github.com/arulrajnet/stockinfo-cli
cli indian-stock-market stock-market yahoo-finance-api
Last synced: about 1 month ago
JSON representation
Get the current and historic stock information in your terminal.
- Host: GitHub
- URL: https://github.com/arulrajnet/stockinfo-cli
- Owner: arulrajnet
- License: mit
- Created: 2022-12-27T15:17:04.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-12T07:03:44.000Z (5 months ago)
- Last Synced: 2025-05-12T08:23:09.247Z (5 months ago)
- Topics: cli, indian-stock-market, stock-market, yahoo-finance-api
- Language: Python
- Homepage:
- Size: 134 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Stock information in CLI
-------------------------Simple CLI tool to get the current stock value and high and low value of stocks for different interval.
* [Stock information in CLI](#stock-information-in-cli)
* [Install](#install)
* [Examples](#examples)
* [Why this?](#why-this)
* [Some background](#some-background)
* [Tips](#tips)
* [Create alias for different stocks](#create-alias-for-different-stocks)
* [Contribute](#contribute)
* [Bug](#bug)
* [Feature ask](#feature-ask)
* [License](#license)## 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

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

## 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](https://gist.github.com/arulrajnet/cb1476234967717a4d6d)
[stockmarketindia.py](https://gist.github.com/arulrajnet/21addbacdbdfd6e190f4)
This repo is using Yahoo Finance API :smiley: I heard your voice, [refer](API.md#alternative) 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 finalizedMostly don't want to add any extra feature if its deviate from [why-this](#why-this)
## License
[MIT License][mit_license].
## Author
[mit_license]: LICENSE