How cyanideanion/ticker-symbol-lookup works
Qfii is a paper-trading stock research and deliberation system: a request becomes an as-of evidence packet, Assessment turns it into a proposal, and three committee agents debate it before deterministic paper execution and recording. The README also documents continuous discovery, MCP research tools, A2A agent access, SEC research, a live debate UI, and replay/evaluation. Several links below are supported only by README statements or source-index references; unsampled implementation details are not inferred.
Main entry points: runner.py Paper workflow · agent.py Research agent · server.py MCP tool server · db.py SQLite schema and ledger
Components 30
Research workflow
- Evidence contracts
qfii/contracts.py - Research agent
qfii/agents/research/agent.py - Research workflow
qfii/agents/research/graph.py - Evidence gathering
qfii/agents/evidence.py - Continuous discovery
qfii/discovery.py - Debate evaluation and replay
qfii/evaluate.py
Agent deliberation
- Assessment and Risk
qfii/agents/teams/agents.py - Structured responses
qfii/agents/structured.py - Paper workflow
qfii/committee/runner.py - Committee debate
qfii/committee/engine.py - Committee members
qfii/committee/members.py - Model providers
qfii/llm.py
Market data and tools
- MCP client
qfii/tools/client.py - MCP tool server
qfii/tools/server.py - Price history
qfii/tools/market.py - Indicators
qfii/tools/indicators.py - SEC filings
qfii/tools/sec.py - Macro and fundamentals
qfii/tools/macro.py - Data fetch
qfii/data_fetch.py
Portfolio and records
- Portfolio snapshot
qfii/portfolio.py - Investor profile
qfii/investor.py - Research and debate records
qfii/store.py - Paper records
qfii/papers.py - SQLite schema and ledger
qfii/db.py
User and service interfaces
- CLI commands
qfii/cli.py - Debate UI
qfii/web/app.py - A2A research service
qfii/agents/research/a2a.py
Other components
- Investor / operator
- OpenAI-compatible / Ollama models
- Yahoo / FRED / SEC sources
Connections 39
- Investor / operator → CLI commands: runs commands
qfii/cli.py - Investor / operator → Debate UI: starts debate
qfii/web/app.py - CLI commands → Paper workflow: runs paper workflow
qfii/cli.py - Debate UI → Paper workflow: starts run
qfii/web/app.py - Paper workflow → Research agent: requests research
qfii/committee/runner.py - Research agent → Research workflow: runs workflow
qfii/agents/research/agent.py - Research workflow → Evidence gathering: gathers evidence
qfii/agents/research/graph.py - Evidence gathering → MCP client: calls research tools
qfii/agents/evidence.py - Research agent → Evidence contracts: returns evidence packet
qfii/agents/research/agent.py - Continuous discovery → Research agent: requests packets
qfii/discovery.py - Continuous discovery → Research and debate records: records discovery
qfii/discovery.py - Paper workflow → Assessment and Risk: requests proposal and reports
qfii/committee/runner.py - Assessment and Risk → MCP client: fetches validation evidence
qfii/agents/teams/agents.py - Assessment and Risk → Structured responses: validates model output
qfii/agents/teams/agents.py - Paper workflow → Committee members: builds members
qfii/committee/runner.py - Paper workflow → Committee debate: runs debate
qfii/committee/runner.py - Committee debate → Committee members: requests ballots
qfii/committee/engine.py - Paper workflow → Portfolio snapshot: loads snapshot
qfii/committee/runner.py - Paper workflow → Research and debate records: persists run
qfii/committee/runner.py - Paper workflow → Paper records: saves paper
qfii/committee/runner.py - Research agent → Model providers: generates research
qfii/agents/research/agent.py - Assessment and Risk → Model providers: generates reports
qfii/agents/teams/agents.py - Committee members → Model providers: generates ballots
qfii/committee/members.py - Model providers → OpenAI-compatible / Ollama models: calls provider
qfii/llm.py - MCP client → MCP tool server: calls MCP tools
qfii/tools/client.py - MCP tool server → Price history: loads price bars
qfii/tools/server.py - MCP tool server → Indicators: computes indicators
qfii/tools/server.py - MCP tool server → SEC filings: queries filings
qfii/tools/server.py - MCP tool server → Macro and fundamentals: loads macro data
qfii/tools/server.py - Data fetch → Price history: downloads price data
qfii/data_fetch.py - Price history → Yahoo / FRED / SEC sources: retrieves market data
README.md - Paper workflow → SQLite schema and ledger: uses SQLite records
qfii/committee/runner.py - Portfolio snapshot → SQLite schema and ledger: reads ledger
qfii/portfolio.py - Portfolio snapshot → Investor profile: loads profile
qfii/portfolio.py - Research and debate records → SQLite schema and ledger: stores records
qfii/store.py - Paper records → SQLite schema and ledger: stores papers
qfii/papers.py - A2A research service → Research agent: serves research requests
qfii/agents/research/a2a.py - Debate evaluation and replay → Paper workflow: runs evaluations
qfii/evaluate.py - Debate evaluation and replay → SQLite schema and ledger: reads saved debates
qfii/evaluate.py