How ivebotunac/primoagent works
Project type and purpose
• This is a domain-specific, multi-agent data processing and backtesting system for stock market analysis.
• It implements a linear “LangGraph” workflow where four specialized agents sequentially enrich a shared state with data, technical indicators, NLP-derived metrics, and trading signals, then supports backtesting.
File structure
Top-level files:
• main.py – runs the full data-collection and analysis pipeline
• backtest.py – runs the backtesting suite against historical data
• requirements.txt / .env.example – dependency management and API key configuration
src/agents/
• Four agent modules (data_collection_agent, technical_analysis_agent, news_intelligence_agent, portfolio_manager_agent)
src/tools/
• API wrappers and utility functions (yfinance, Finnhub, etc.)
src/backtesting/
• Engine, data loader, strategies, reporting, and plotting submodules
src/workflows/
• Stateful orchestration (LangGraph workflow implementation)
src/config/
• Config loader, JSON templates, model factory for LLMs
src/prompts/
• LLM prompts for each agent’s NLP tasks
output/
• CSV folder for daily per‐symbol analysis
• backtests folder for result charts and markdown reports
README for additional insights
• Sequential pipeline: Data → Technical Indicators → News NLP → Portfolio signals
• External integrations: yFinance, Finnhub, Firecrawl, Perplexity
• Backtesting component for performance evaluation