How sharan-g-s/marketpulse-ai-agents works
MarketPulse is a Streamlit financial-intelligence application whose main workflow accepts a ticker, gathers market and news data, analyzes sentiment and risk, optionally evaluates a portfolio, generates alerts, and produces an investment report. Its LangGraph workflow coordinates the agents over shared state; the UI also exposes separate market-analysis tools and dashboards. The README documents these additional capabilities, but their page-level implementations were not sampled, so they are represented at subsystem level.
Main entry points: workflow.py LangGraph workflow · state.py Shared analysis state · news_agent.py News collection · watchlist_agent.py Watchlist analysis
Components 20
User experience
- Main dashboard
ui/app.py - Analysis pages
ui/pages - UI themes
ui/theme.py
Analysis workflow
- LangGraph workflow
graph/workflow.py - Shared analysis state
graph/state.py
Analysis agents
- News collection
agents/news_agent.py - Stock data
agents/stock_data_agent.py - Watchlist analysis
agents/watchlist_agent.py - News sentiment
agents/sentiment_agent.py - Risk analysis
agents/risk_analyst_agent.py - Portfolio tracking
agents/portfolio_tracker.py - Alert evaluation
agents/alert_engine.py - Investment report
agents/report_agent.py
Market analytics
- Stock data tools
tools/stock_tools.py - Technical indicators
tools/indicators.py - News tools
tools/news_tools.py - Market analysis tools
tools
Other components
- Investor
- Market and news providers
- Language model
Connections 31
- Investor → Main dashboard: uses
README.md - Investor → Analysis pages: explores
README.md - Main dashboard → LangGraph workflow: runs analysis
ui/app.py - LangGraph workflow → News collection: dispatches
graph/workflow.py - LangGraph workflow → Stock data: dispatches
graph/workflow.py - LangGraph workflow → Watchlist analysis: dispatches
graph/workflow.py - LangGraph workflow → News sentiment: dispatches
graph/workflow.py - LangGraph workflow → Risk analysis: dispatches
graph/workflow.py - LangGraph workflow → Portfolio tracking: dispatches
graph/workflow.py - LangGraph workflow → Alert evaluation: dispatches
graph/workflow.py - LangGraph workflow → Investment report: dispatches
graph/workflow.py - LangGraph workflow → Shared analysis state: passes state
graph/workflow.py - News collection → Shared analysis state: updates
graph/state.py - Stock data → Stock data tools: uses
agents/stock_data_agent.py - Stock data → Shared analysis state: updates
graph/state.py - News collection → News tools: uses
agents/news_agent.py - News collection → Shared analysis state: updates
graph/state.py - Watchlist analysis → Stock data tools: uses
agents/watchlist_agent.py - Watchlist analysis → Technical indicators: uses
agents/watchlist_agent.py - Watchlist analysis → Shared analysis state: updates
graph/state.py - News sentiment → Shared analysis state: updates
graph/state.py - Risk analysis → Shared analysis state: updates
graph/state.py - Portfolio tracking → Stock data tools: fetches prices
agents/portfolio_tracker.py - Portfolio tracking → Shared analysis state: updates
graph/state.py - Alert evaluation → Shared analysis state: evaluates
agents/alert_engine.py - Investment report → Shared analysis state: reads analysis
agents/report_agent.py - Stock data tools → Market and news providers: fetches quotes
- News tools → Market and news providers: fetches news
- Analysis pages → Market analysis tools: offers analytics
README.md - Analysis pages → UI themes: uses styling
ui/pages/2_About.py - News sentiment → Language model: scores articles
README.md