https://github.com/thevickypedia/stock_analyzer
Analyze all NASDAQ stocks on Yahoo Finance using Pandas
https://github.com/thevickypedia/stock_analyzer
Last synced: about 2 months ago
JSON representation
Analyze all NASDAQ stocks on Yahoo Finance using Pandas
- Host: GitHub
- URL: https://github.com/thevickypedia/stock_analyzer
- Owner: thevickypedia
- License: mit
- Created: 2020-07-26T01:55:29.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-07T17:39:55.000Z (over 3 years ago)
- Last Synced: 2025-02-12T22:22:33.944Z (4 months ago)
- Language: Python
- Homepage:
- Size: 258 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stock Analyzer
Analyze all NASDAQ stocks on [Yahoo Finance](https://finance.yahoo.com) using [YFinance](https://pypi.org/project/yfinance/) API### Libraries Used
- `ThreadPoolExecutor` - Uses a pool of threads to execute calls asynchronously
- `YFinance` - Yahoo API to request stock information for each ticker value
- `Tqdm` - Progress bar
- `Xlsxwriter` - Writes data into a spreadsheet
- `numerize` - Converts float value to understandable currency value (Example: `568153344` to `568.15M`)
- `pick` - Lets user to, choose a value to sort the source dictionary before writing to the spreadsheet[Legacy:](https://github.com/thevickypedia/stock_analyzer/blob/master/thor_legacy.py)
- `Pandas` - Retrieve tables while using web calls
- `BeautifulSoup` - Retrieves information in non-tables### Options
- [Web calls - legacy](https://github.com/thevickypedia/stock_analyzer/blob/master/thor_legacy.py) - Uses web calls to https://finance.yahoo.com
- [API](https://github.com/thevickypedia/stock_analyzer/blob/master/thor_api.py) - Uses Yahoo Finance API### Instructions
1. `git clone https://github.com/thevickypedia/stock_analyzer.git`
2. `python3 -m venv venv`
3. `source venv/bin/activate`
4. `pip3 install -r requirements.txt`
5. `python3 thor_api.py`### Linting
`PreCommit` will ensure linting, and the doc creation are run on every commit.Requirement:
`pip install --no-cache --upgrade sphinx pre-commit recommonmark`Usage:
`pre-commit run --all-files`### Links
[Repository](https://github.com/thevickypedia/stock_analyzer)[Runbook](https://thevickypedia.github.io/stock_analyzer/)
## License & copyright
© Vignesh Sivanandha Rao, [Stock Analyzer](https://github.com/thevickypedia/stock_analyzer)
Licensed under the [MIT License](https://github.com/thevickypedia/stock_analyzer/blob/master/LICENSE)