How ai4finance-foundation/finrobot works
FinRobot is a financial decision-intelligence platform with three generations: the production V2 desktop research system, a V1 web report generator, and an educational V0 AutoGen framework. The main V2 workflow takes a ticker or research request through data retrieval, agent-led analysis and deterministic valuation, then presents traceable research artifacts and reports. Coverage management, chat, audit/provenance, and backtesting are related capabilities. The graph emphasizes V2; older-generation connections are limited to README descriptions because their full runtime wiring was not sampled.
Main entry points: orchestrator.py Lead agent · service.py Coverage desk · ResearchPage.tsx Desktop cockpit · layer.py Market data
Components 22
Desktop research
- Desktop cockpit
finrobot_desktop/desktop/src/pages/ResearchPage.tsx - API client
finrobot_desktop/desktop/src/api/client.ts - Report viewer
finrobot_desktop/desktop/src/pages/ArtifactDetailPage.tsx - AI chat
finrobot_desktop/desktop/src/layout/RightChatPanel/chat/useChatStream.ts
Research engine
- FastAPI backend
finrobot_desktop/finrobot/server.py - Lead agent
finrobot_desktop/finrobot/engine/orchestrator.py - Research pipelines
finrobot_desktop/finrobot/engine/pipelines - Methodology skills
finrobot_desktop/finrobot/engine/skills/pipeline_methodology.py - Coverage routes
finrobot_desktop/finrobot/routes/coverage.py - Coverage desk
finrobot_desktop/finrobot/coverage/service.py
Data and compute
- Market data
finrobot_desktop/finrobot/engine/data/layer.py - Data providers
finrobot_desktop/finrobot/engine/data/providers - Valuation compute
finrobot_desktop/finrobot/engine/compute/operators - Backtesting
finrobot_desktop/finrobot/engine/backtest/engine.py
Research state
- Research artifacts
finrobot_desktop/finrobot/artifact/store.py - Coverage store
finrobot_desktop/finrobot/coverage/sqlite_store.py
Earlier generations
- V1 report app
finrobot_equity/web_app/main.py - V1 research agents
finrobot_equity/core/src/modules/equity_agents/agent_manager.py - V1 valuation
finrobot_equity/core/src/modules/valuation_engine.py - V0 AutoGen agents
finrobot_autogen/finrobot/agents/workflow.py - V0 financial RAG
finrobot_autogen/finrobot/functional/ragquery.py
Other components
- Analyst
Connections 22
- Analyst → Desktop cockpit: starts research
README.md - Desktop cockpit → API client: requests data
- API client → FastAPI backend: calls API
- FastAPI backend → Lead agent: orchestrates
finrobot_desktop/finrobot/server.py - Lead agent → Research pipelines: dispatches pipeline
README.md - Research pipelines → Methodology skills: uses methodology
- Lead agent → Market data: retrieves data
- Market data → Data providers: fetches from
finrobot_desktop/finrobot/engine/data/layer.py - Lead agent → Valuation compute: invokes calculations
README.md - Lead agent → Research artifacts: stores outputs
- Research artifacts → Report viewer: supplies reports
- Desktop cockpit → AI chat: opens chat
- Coverage routes → Coverage desk: builds overview
finrobot_desktop/finrobot/routes/coverage.py - Coverage desk → Coverage store: reads coverage
finrobot_desktop/finrobot/coverage/service.py - Coverage desk → Market data: reads market data
finrobot_desktop/finrobot/coverage/service.py - Coverage desk → Research artifacts: reads research
finrobot_desktop/finrobot/coverage/service.py - Lead agent → Backtesting: runs backtests
finrobot_desktop/finrobot/engine/orchestrator.py - Analyst → V1 report app: requests report
README.md - V1 report app → V1 research agents: coordinates agents
- V1 research agents → V1 valuation: uses valuation
- Analyst → V0 AutoGen agents: studies workflows
README.md - V0 AutoGen agents → V0 financial RAG: queries financial sources