How ashayk003/nse-sentiment-analyzer works
NSE Stock Sentiment Analyzer is a Streamlit dashboard for turning an NSE ticker or company name into market context, technical indicators, and a multi-source news signal. The main flow starts at the app, resolves the requested ticker and fetches prices/news, scores headlines with sentiment and event context, then presents analysis and related portfolio/market views. The README documents additional charting, cascade tracking, dissemination breadth, and adaptive predictions. Edges reflect explicit README statements or the SOURCE INDEX; unsampled implementation details are not inferred.
Main entry points: app.py Streamlit app · data_fetcher.py Price and news fetch · persistence.py Local and session state · adaptive_sentiment.py Adaptive predictions
Components 19
Analysis workflow
- Streamlit app
app.py - Ticker lookup
data_fetcher.py - Price and news fetch
data_fetcher.py
News intelligence
- Headline sentiment
sentiment.py - Event classification
event_classifier.py - SmartScore aggregation
aggregate_sentiment.py - News breadth
data_fetcher.py - Adaptive predictions
adaptive_sentiment.py - Commodity impacts
cascade.py
Market context
- Technical indicators
indicators.py - Intraday levels
intraday.py - Market pulse and flows
market_data.py
Dashboard and state
- Portfolio tracking
portfolio_ui.py - Dashboard rendering
render.py - Local and session state
persistence.py - Interactive price chart
render.py
Other components
- Investor
- Yahoo Finance
- News feeds
Connections 24
- Investor → Streamlit app: submits ticker
README.md - Streamlit app → Ticker lookup: resolves ticker
app.py - Streamlit app → Price and news fetch: requests analysis
app.py - Ticker lookup → Yahoo Finance: searches online
README.md - Price and news fetch → Yahoo Finance: fetches prices
README.md - Price and news fetch → News feeds: fetches headlines
README.md - Streamlit app → Headline sentiment: scores headlines
app.py - Streamlit app → Event classification: adjusts scores
app.py - Streamlit app → SmartScore aggregation: combines scores
app.py - Streamlit app → News breadth: clusters articles
README.md - Streamlit app → Adaptive predictions: predicts reactions
README.md - Price and news fetch → Adaptive predictions: uses learner
data_fetcher.py - Streamlit app → Commodity impacts: finds related impacts
app.py - Streamlit app → Technical indicators: computes indicators
app.py - Technical indicators → Price and news fetch: reads cached history
indicators.py - Streamlit app → Intraday levels: computes intraday levels
app.py - Streamlit app → Market pulse and flows: loads market context
app.py - Streamlit app → Portfolio tracking: shows holdings
app.py - Streamlit app → Dashboard rendering: renders analysis
app.py - Streamlit app → Local and session state: persists analysis state
app.py - Price and news fetch → Local and session state: uses cache
data_fetcher.py - Adaptive predictions → Local and session state: loads saved clusters
adaptive_sentiment.py - Portfolio tracking → Local and session state: loads portfolio data
portfolio_ui.py - Dashboard rendering → Interactive price chart: displays chart
README.md