How unaveragetech/infobroker works
Infobroker is a local trading desk for market research, learning, and trading, paper-first with optional live brokers and an Ollama coach. The principal workflow is browser desk → web API → market universe/data and analysis → displayed board or chart; trading requests pass through the API to a broker and portfolio state. Separate capabilities include strategies, lessons, Grapevine/MCP, and market-session clocks. The README documents the broad runtime wiring; source-index references and excerpts support selected internal calls. Unsampled modules are represented as product subsystems without asserting unverified connections.
Main entry points: app.py Web API · tools.py Grapevine tools · engine.py Universe engine · market.py Market data
Components 29
Desk API
- Web API
infobroker/web/app.py - Browser UI
infobroker/web/static/app.js
Market research
- Universe engine
infobroker/universe/engine.py - Universe cache
infobroker/universe/store.py - Market data
infobroker/data/market.py - Yahoo analysis
infobroker/data/yf_pipeline.py - Data providers
infobroker/data/providers.py - Multi-source board
infobroker/data/multisource.py - Market highlights
infobroker/data/highlights.py - Market clocks
infobroker/markets/sessions.py - Chart packs
infobroker/data/chartpack.py - Strategies
infobroker/strategies/backtest.py - Market indicators
infobroker/data/indicators.py
Trading
- Broker contract
infobroker/brokers/base.py - Paper broker
infobroker/brokers/paper.py - Broker adapters
infobroker/brokers/registry.py - Portfolio
infobroker/portfolio.py
Learning and assistant
- Grapevine tools
infobroker/assistant/tools.py - Assistant agent
infobroker/assistant/agent.py - Ollama client
infobroker/assistant/ollama_client.py - Lessons and tutor
infobroker/education/lessons.py - Trade stories
infobroker/education/trade_stories.py - MCP bridge
infobroker/mcp_server.py
Desk services
- Desk settings
infobroker/config.py - Process control
infobroker/services/process_control.py
Other components
- Desk user
- Yahoo Finance
- Ollama service
- External brokers
Connections 35
- Desk user → Browser UI: uses
README.md - Browser UI → Web API: requests
README.md - Web API → Universe engine: routes to
README.md - Web API → Grapevine tools: routes to
README.md - Web API → Broker adapters: creates broker
infobroker/web/app.py - Web API → Strategies: runs backtests
infobroker/web/app.py - Web API → Lessons and tutor: serves learning
infobroker/web/app.py - Web API → Multi-source board: builds live board
infobroker/web/app.py - Universe engine → Universe cache: loads and saves
infobroker/universe/engine.py - Universe engine → Multi-source board: refreshes quotes
infobroker/universe/engine.py - Universe engine → Yahoo Finance: fetches quotes
README.md - Multi-source board → Data providers: uses fallback
infobroker/data/multisource.py - Market data → Yahoo analysis: downloads history
infobroker/data/market.py - Market data → Data providers: uses fallback
infobroker/data/market.py - Yahoo analysis → Yahoo Finance: downloads prices
infobroker/data/yf_pipeline.py - Yahoo analysis → Market indicators: adds indicators
infobroker/data/yf_pipeline.py - Web API → Chart packs: serves charts
infobroker/web/app.py - Strategies → Market data: reads history
infobroker/strategies/backtest.py - Strategies → Market indicators: uses indicators
infobroker/strategies/backtest.py - Web API → Market clocks: reports market hours
README.md - Web API → Paper broker: places orders
README.md - Paper broker → Broker contract: implements contract
infobroker/brokers/paper.py - Paper broker → Market data: gets last price
infobroker/brokers/paper.py - Broker adapters → Broker contract: registers adapters
infobroker/brokers/__init__.py - Broker adapters → External brokers: connects live
README.md - Web API → Portfolio: serves account
README.md - Grapevine tools → Universe engine: reads market cache
infobroker/assistant/tools.py - Grapevine tools → Market data: requests market data
infobroker/assistant/tools.py - Grapevine tools → Ollama client: invokes coach
README.md - Assistant agent → Grapevine tools: executes tools
- Ollama client → Ollama service: sends chat
infobroker/assistant/ollama_client.py - Process control → Ollama client: checks health
infobroker/services/process_control.py - MCP bridge → Grapevine tools: exposes tools
README.md - Web API → Trade stories: serves trade stories
infobroker/web/app.py - Desk settings → Web API: configures runtime
infobroker/web/app.py