This project is focused on analyzing a large corpus of financial news data to discover correlations between news sentiment and stock market movements.
- Perform sentiment analysis on financial news headlines.
- Establish statistical correlations between news sentiment and stock price movements.
- Provide actionable insights and investment strategies based on your analysis.
├── .vscode/
│ └── settings.json
├── app/
│ └── app.py # streamlit app
├── .github/
│ └── workflows/
│ └── unittests.yml # GitHub Actions
├── .gitignore # directories to be ignored by git
├── requirements.txt # contains dependencies for the project
├── README.md
├── src/
│ ├── __init__.py
│
├── notebooks/
│ ├── __init__.py
│ ├── Sentiment_Analysis_EDA.ipynb # Jupyter notebook for stock news EDA analysis
│ └── AAPL_EDA.ipynb,AMZN_EDA.ipynb,GOOG_EDA.ipynb,META_EDA.ipynb,MSFT_EDA.ipynb,NVDA_EDA.ipynb, TSLA_EDA ipynb, correlation_analysis_notebook.ipynb # notebook files for financial analysis of each stock data
├── tests/
└── scripts/
├── __init__.py
├── utils.py # Script for financial news analysis
├── financial_analyzer.py # script for the stock data analysis
├── sentiment_correlation_analysis.py # script for financial news and stock price integration analysis
└── README.md # Documentation for the scripts directory
-
Clone the repository:
git clone https://github.com/OL-YAD/Financial-news-Stock-Analysis.git cd Financial-news-Stock-Analysis
-
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
To run the Streamlit app locally:
-
Ensure you're in the project directory and your virtual environment is activated (if you're using one).
-
Run the following command:
streamlit run app.py
- Historical stock data: Retrieved from Yahoo Finance
- News sentiment data: Collected from financial news sources
For any questions or feedback, please open an issue on this GitHub repository.