How mrkhaled007/finagent-pro works
FinAgent Pro accepts a ticker request, checks for a recent cached analysis, gathers market, financial, and news data, then produces a research brief, model-based risk assessment, quality verdict, and HTML report before storing the result. The API entry point and pipeline orchestration are visible in the source index; the sampled sources show the agent and data-fetching calls. The risk model artifact and API route details were not sampled, so those links are omitted. The pipeline also logs progress and can reuse cached summaries.
Main entry points: orchestrator.py Analysis pipeline · research_agent.py Research agent · base_agent.py Gemini agent client · news.py News sentiment
Components 18
Request orchestration
- API entry
api/main.py - Analysis pipeline
orchestrator.py
Equity research
- Research agent
agents/research_agent.py - Stock data
tools/stock_data.py - Financial data
tools/financials.py - News sentiment
tools/news.py
Risk evaluation
- Risk analyst
agents/analyst_agent.py - Feature engineering
tools/feature_engineering.py - Quality judge
agents/judge_agent.py
Reporting and memory
- HTML report
agents/report_agent.py - Analysis memory
memory/memory_agent.py - Persistent vector store
External data and AI
- Gemini agent client
agents/base_agent.py - Runtime configuration
config.py
Other components
- Ticker requester
- Yahoo Finance
- Alpha Vantage
- Gemini API
Connections 23
- Ticker requester → API entry: submits ticker
- API entry → Analysis pipeline: calls pipeline
api/main.py - Analysis pipeline → Analysis memory: checks cache
orchestrator.py - Analysis memory → Persistent vector store: reads and writes
memory/memory_agent.py - Analysis pipeline → Research agent: runs research
orchestrator.py - Research agent → Stock data: fetches prices
agents/research_agent.py - Research agent → Financial data: fetches financials
agents/research_agent.py - Research agent → News sentiment: fetches news
agents/research_agent.py - Stock data → Yahoo Finance: fetches market data
tools/stock_data.py - Financial data → Yahoo Finance: fetches statements
tools/financials.py - News sentiment → Alpha Vantage: requests headlines
tools/news.py - Research agent → Gemini agent client: requests brief
agents/research_agent.py - Risk analyst → Feature engineering: computes features
agents/analyst_agent.py - Feature engineering → Yahoo Finance: fetches history
tools/feature_engineering.py - Risk analyst → Gemini agent client: requests explanation
agents/analyst_agent.py - Analysis pipeline → Risk analyst: runs risk analysis
orchestrator.py - Analysis pipeline → Quality judge: evaluates outputs
orchestrator.py - Quality judge → Gemini agent client: requests evaluation
agents/judge_agent.py - Gemini agent client → Gemini API: generates content
agents/base_agent.py - Gemini agent client → Runtime configuration: reads settings
agents/base_agent.py - News sentiment → Runtime configuration: reads API key
tools/news.py - Analysis pipeline → HTML report: builds report
orchestrator.py - Analysis pipeline → Analysis memory: stores analysis
orchestrator.py