How ed-donner/finally works
FinAlly is an AI trading workstation. Its market-data workflow selects a provider, updates a shared price cache, and exposes changed prices through SSE; the documented product also includes portfolio views, watchlists, simulated trading, and AI-assisted trade execution. The supplied tree and excerpts cover the market-data subsystem, not the application routes or the other feature implementations, so those capabilities are represented only at the documented subsystem level.
Main entry points: cache.py Price Cache · simulator.py GBM Simulator · massive_client.py Massive Client · app AI Chat Assistant
Components 16
Market Data
- Source Selector
backend/app/market/factory.py - Provider Contract
backend/app/market/interface.py - GBM Simulator
backend/app/market/simulator.py - Seed Parameters
backend/app/market/seed_prices.py - Massive Client
backend/app/market/massive_client.py - Price Cache
backend/app/market/cache.py - Price Snapshot
backend/app/market/models.py - SSE Stream
backend/app/market/stream.py
Portfolio & Trading
- Watchlist
backend/app - Portfolio Views
backend/app - Trade Execution
backend/app - SQLite Database
AI Assistant
- AI Chat Assistant
backend/app - LiteLLM / OpenRouter
Other components
- Trader
- Market Provider
Connections 19
- Source Selector → GBM Simulator: selects fallback
backend/app/market/factory.py - Source Selector → Massive Client: selects by key
backend/app/market/factory.py - GBM Simulator → Provider Contract: implements
backend/app/market/simulator.py - Massive Client → Provider Contract: implements
backend/app/market/massive_client.py - GBM Simulator → Seed Parameters: loads parameters
backend/app/market/simulator.py - GBM Simulator → Price Cache: writes prices
backend/app/market/simulator.py - Massive Client → Price Cache: writes prices
backend/app/market/massive_client.py - Massive Client → Market Provider: polls snapshots
backend/app/market/massive_client.py - Price Cache → Price Snapshot: creates snapshots
backend/app/market/cache.py - SSE Stream → Price Cache: reads updates
backend/app/market/stream.py - Trader → SSE Stream: views live prices
README.md - Price Cache → Portfolio Views: provides prices
backend/app/market/cache.py - Price Cache → Trade Execution: provides prices
backend/app/market/cache.py - Trader → Watchlist: manages tickers
README.md - Trader → AI Chat Assistant: asks assistant
README.md - AI Chat Assistant → LiteLLM / OpenRouter: requests analysis
README.md - AI Chat Assistant → Trade Execution: executes suggestions
README.md - Portfolio Views → SQLite Database: persists portfolio
README.md - Trade Execution → SQLite Database: updates portfolio
README.md