Financial analysis platform that integrates Fundamental Analysis, Technical Indicators, and NLP-driven Sentiment to forecast short-term price movements using XGBoost.
- NLP Scraping: Scans 50 financial news sources per ticker to extract and summarize key market drivers.
- Hybrid AI Prediction: XGBoost classifier predicting 3-hour price direction based on technical, fundamental, and sentiment data.
- Sector Intelligence: Dynamic heatmaps for visualizing relative performance across industries.
- Frontend: Streamlit (Real-time Dashboarding)
- Data Sources:
yfinance(Prices & Fundamentals), SQLite (Sentiment History) - Technical Analysis:
pandas-ta,stockstats - Machine Learning: XGBoost (Gradient Boosted Decision Trees)
- NLP: FinBERT & Scraping Engine (Processing headlines from 50+ web sources)
The engine scrapes and analyzes headlines from 50+ web sources per ticker. It doesn't just score sentiment; it identifies and summarizes the most critical information affecting the stock.
Real-time sector visualization allows for instant identification of market leaders and laggards. Heatmaps adjust dynamically based on the selected industry sector.
Predicts price movement for the next 3 hours by correlating:
- Momentum: RSI, EMA.
- Sentiment: Aggregated score from 50+ news portals.
- Fundamentals: Real-time P/E, P/B, and Margin data with interactive tooltips.
The main terminal view showing real-time price action, sentiment trends, and the floating AI clock.
app.py: The main entry point. Handles the UI, Plotly visualizations, and real-time data orchestration.train.py: A dedicated script for training/retraining XGBoost models for each ticker.model_predictor.py: The inference engine class that loads.pklmodels and generates real-time signals.sentiment_worker.py: Processes news headlines through FinBERT and manages the SQLite sentiment database.config.py: Centralized configuration for tickers, sector benchmarks, and model paths.
- Python 3.9+
- Virtual environment (recommended)
- Clone the repository:
[git clone [https://github.com/youruser/financial-ai-terminal.git](https://github.com/youruser/financial-ai-terminal.git) cd financial-ai-terminal](https://github.com/MichalPytlarz/Analiza_gieldy_live.git) - Install dependencies:
pip install -r requirements.txt
- Train the AI models:
python training/train.py python services/sentiment_worker.py
- Launch the terminal:
streamlit run app.py
This software is for educational and research purposes only. The stock market involves significant risk. Predictions generated by the AI model should not be taken as financial advice. Always perform your own due diligence.

