Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
|
@@ -6,14 +6,41 @@ colorTo: red
|
|
| 6 |
sdk: docker
|
| 7 |
app_port: 8501
|
| 8 |
tags:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
- streamlit
|
| 10 |
pinned: false
|
| 11 |
-
short_description:
|
| 12 |
---
|
| 13 |
|
| 14 |
-
#
|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
sdk: docker
|
| 7 |
app_port: 8501
|
| 8 |
tags:
|
| 9 |
+
- financial-analysis
|
| 10 |
+
- nlp
|
| 11 |
+
- sentiment-analysis
|
| 12 |
+
- finbert
|
| 13 |
- streamlit
|
| 14 |
pinned: false
|
| 15 |
+
short_description: Market Sentiment & Volatility Prediction using FinBERT
|
| 16 |
---
|
| 17 |
|
| 18 |
+
# 🚀 Alpha Predict: Market Sentiment Engine
|
| 19 |
|
| 20 |
+
Alpha Predict is an AI-driven financial analysis tool that leverages **FinBERT** (Financial BERT) to quantify market sentiment from real-time and historical headlines. It correlates sentiment with **S&P 500 (SPY)** performance and the **VIX (Fear Index)** to provide a holistic view of market psychology.
|
| 21 |
|
| 22 |
+
## 🧠 Core Features
|
| 23 |
+
* **NLP Sentiment Analysis:** Uses `ProsusAI/finbert` to perform high-fidelity sentiment classification on thousands of market headlines.
|
| 24 |
+
* **Hybrid Data Fetching:** Integrated with **Finnhub API** for live market news and price action, with a **robust CSV fallback** mechanism for maximum uptime.
|
| 25 |
+
* **Predictive Indicators:** Analyzes "Panic Interaction" (Sentiment x Volatility) to detect market dislocations.
|
| 26 |
+
* **Interactive Analytics:** Visualizes the relationship between news sentiment trends and price movements via Streamlit.
|
| 27 |
+
|
| 28 |
+
## 🛠️ Technical Stack
|
| 29 |
+
* **UI Framework:** Streamlit
|
| 30 |
+
* **Model:** FinBERT (Hugging Face Transformers)
|
| 31 |
+
* **Data Providers:** Finnhub API, Yahoo Finance (via backup)
|
| 32 |
+
* **Deployment:** Docker / Hugging Face Spaces
|
| 33 |
+
|
| 34 |
+
## 📂 Project Structure
|
| 35 |
+
* `app.py`: Main entry point for the Streamlit dashboard.
|
| 36 |
+
* `src/data_fetcher.py`: Handles API interactions and data resilience.
|
| 37 |
+
* `src/processor.py`: Feature engineering and sentiment batch processing.
|
| 38 |
+
* `data/`: Secure storage for historical backup data to ensure 100% availability.
|
| 39 |
+
|
| 40 |
+
## 🚦 Getting Started
|
| 41 |
+
1. **API Keys:** Ensure your `FINNHUB_API_KEY` is set in the Hugging Face Space Secrets.
|
| 42 |
+
2. **Processing:** Upon launch, the app will fetch the last 45-60 days of data.
|
| 43 |
+
3. **Inference:** FinBERT runs batch inference on the latest headlines to calculate the `Sent_Mean` index.
|
| 44 |
+
|
| 45 |
+
---
|
| 46 |
+
**Note:** *This project was developed for academic purposes to demonstrate the application of Transformer-based models in quantitative finance.*
|