StockAnalysis
This program empowers users to analyze stock data and compare its price trends over various timeframes: today, yesterday, last month, and last year. The program offers the flexibility to input specific stock tickers or retrieve 'n' stocks based on the S&P index. Usage
The program provides insights into stock performance and visualizes trends. Users can input stock tickers or opt for automatic retrieval based on the S&P index. Sample Output
For instance, the program can analyze the performance of AAPL over the past day, month, and year, plotting the trends for visual understanding.
Changes Made
The program underwent significant enhancements:
- Input Validation: Implemented robust user input validation for seamless data retrieval.
- Data Fetching Enhancement: Utilized the Yahoo Finance API to fetch accurate stock data.
- Improved Data Plotting: Enhanced data plotting with titles and labels for clearer visualization.
- Handling No Data: Addressed scenarios where no data is available for specific stocks, ensuring smoother execution.
- Code Organization: Structured the code for better organization and readability.