Real-time market intelligence from domain-specific news with sentiment analysis and ETF charts.
- 4 domains: Business & Finance, Law & Government, Politics, Technology
- Market-moving filter: Keywords + Ollama Mistral to surface relevant news
- Domain sentiment model: Multi-domain RoBERTa adapter for finance/tech/law/politics
- ETF charts: SPY, QQQ, TLT, GLD (last 10 days)
pip install -r requirements.txtCopy .env.example to .env and add your API keys:
- SERPAPI_API_KEY – serpapi.com (for Google Trends)
- NEWS_API_KEY – newsapi.org
The model file (domain_sentiment_model.pt) is too large for GitHub. Train it locally:
python domain_updated.pyThis creates domain_sentiment_model.pt in the project root.
For Mistral summaries, run Ollama with Mistral:
ollama pull mistral
ollama serve./run_app.shOr:
streamlit run app.pyapp.py– Streamlit appdata_sources.py– News API, filters, Ollama summarizationdomain_updated.py– Domain sentiment model (train & inference)domain_sentiment_model.pt– Trained model (create via step 3)