Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/visionary-code-works/stock_getter
https://github.com/visionary-code-works/stock_getter
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/visionary-code-works/stock_getter
- Owner: Visionary-Code-Works
- Created: 2023-11-21T18:21:26.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-12-19T11:55:50.000Z (11 months ago)
- Last Synced: 2023-12-19T12:41:19.589Z (11 months ago)
- Language: Python
- Size: 45.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# stock_getter
## Stock Market Data Analysis Tool
This tool provides various functionalities for analyzing stock market data, including comparative analysis, volatility measurement, Fibonacci retracement levels, and more. It utilizes the yfinance library to fetch historical data from Yahoo Finance and matplotlib for data visualization.
## Features
1. **Comparative Analysis**: Compares performance of selected stocks or stock indices over a specified period. Users can input stock tickers for a customized comparison.
2. **Volatility Measurement**: Calculates and visualizes the 30-day rolling volatility (annualized) of selected stocks.
3. **Fibonacci Retracement**: Plots Fibonacci retracement levels for a given stock over the past year. The tool also includes error handling for incorrect or non-existent stock tickers.## Installation
To use this tool, ensure you have Python installed on your system along with the following libraries:
```bash
pip install yfinance
pip install matplotlib
pip install pandas
```## Comparative Analysis
- Run the script and input 2-3 stock tickers when prompted.
- The script will display a comparison of the selected stocks’ normalized closing prices over time.## Volatility Measurement
The script calculates and plots the rolling volatility of specified stocks.
Users can modify the list of tickers in the script to analyze different stocks.## Fibonacci Retracement
Enter the desired stock ticker when prompted.
The script will plot the stock's closing prices along with key Fibonacci levels.## Customization
The scripts are customizable, allowing users to specify different stock tickers and time periods for analysis.
## Error Handling
The Fibonacci retracement tool includes error handling to manage incorrect user inputs or data unavailability.
## Limitations
Due to the nature of financial APIs and data availability, some tickers or indices might not have data accessible through yfinance.
### Note
This tool is intended for educational and informational purposes. It should not be considered as financial advice.