How adarshp521/torofolio works
ToroFolio is a browser-based trading terminal backed by a Flask service. The main user flow is authentication, selecting/searching a ticker, viewing market data and analysis, then recording trades and syncing account state. The README also documents watchlists, holdings, AI rules, profile assets, and CSV auditing. Several product details are documented but their implementation is unsampled; those relationships are cited to the README rather than inferred from filenames.
Main entry points: server.py HTTP API · app.js Client Orchestrator · index.html Trading Interface
Components 20
Trading Client
- Trading Interface
index.html - Client Orchestrator
app.js - Authentication
app.js - Client State
app.js - Watchlist & Search
app.js - Trade Execution
app.js
Market Analysis
- Chart & Timeframes
app.js - Stock Fundamentals
app.js - Trade Advisor
app.js
Backend Service
- HTTP API
server.py - Account API
server.py - Market Data API
server.py - AI Rules & Logs
server.py - Profile & Avatar
server.py
Persistence
- SQLite Database
server.py - CSV Audit Log
server.py
Other components
- Trader
- Yahoo Finance
- Finnhub
- Firebase / OAuth
Connections 25
- Trader → Trading Interface: uses
README.md - Trading Interface → Client Orchestrator: renders
README.md - Client Orchestrator → Authentication: checks session
README.md - Client Orchestrator → Client State: loads and saves
README.md - Client Orchestrator → Watchlist & Search: handles search
app.js - Watchlist & Search → HTTP API: requests search
app.js - Client Orchestrator → Chart & Timeframes: selects ticker
README.md - Chart & Timeframes → HTTP API: requests market data
README.md - HTTP API → Market Data API: routes requests
server.py - Market Data API → Yahoo Finance: fetches quotes and history
server.py - Market Data API → Finnhub: supports live data
README.md - Chart & Timeframes → Stock Fundamentals: shows metrics
README.md - Stock Fundamentals → HTTP API: requests fundamentals
README.md - Trade Advisor → Trade Execution: informs trades
README.md - Client Orchestrator → Trade Execution: records trades
app.js - Trade Execution → HTTP API: syncs account state
README.md - HTTP API → Account API: routes account actions
server.py - Account API → SQLite Database: reads and writes users
server.py - HTTP API → AI Rules & Logs: routes rule actions
server.py - AI Rules & Logs → SQLite Database: stores rules and logs
server.py - HTTP API → Profile & Avatar: routes profile updates
server.py - Profile & Avatar → SQLite Database: stores profile data
server.py - Profile & Avatar → CSV Audit Log: logs profile updates
README.md - Authentication → Firebase / OAuth: supports SSO
README.md - Client State → SQLite Database: syncs state
README.md