How shamanth-8/tradeo works
Tradeo is a local-first Indian-market assistant and paper-trading lab. Users interact through the web app or voice/chat; the backend serves analysis and market-data features, while optional scanning and trading agents produce ideas, apply pre-trade checks, and record virtual-account results. The product also includes a pluggable research engine, strategy backtesting, broker-based holdings access, and alerts. The README documents the main product flows; several route and subsystem implementations were not sampled, so their internal links are omitted.
Main entry points: main.py FastAPI backend · App.jsx Tradeo web app · ingest.py Tick ingestion · library.py Trading agents
Components 23
App and API
- Tradeo web app
frontend/src/App.jsx - FastAPI backend
backend/main.py - Product API routes
backend/api/routes - Voice interface
backend/voice/engine.py
Market intelligence
- Market data
backend/data/fetchers/stock_fetcher.py - News data
backend/data/fetchers/news_fetcher.py - Watchtower scanner
backend/realtime/scanner.py - Watchtower scheduler
backend/realtime/engine.py - Tick ingestion
backend/lowlatency/ingest.py - Low-latency bus
backend/lowlatency/bus.py
Agents and paper trading
- Paper account
backend/data/storage/database.py - Autopilot controls
backend/autopilot/scheduler.py - Trading agents
backend/agents/library.py - Pre-trade checks
backend/pipeline/pretrade.py - Watchtower pipeline
backend/pipeline/watchtower.py - Backtesting
backend/pipeline/backtest.py - Strategy sandbox
backend/strategies/engine.py
AI and research
- Local AI assistant
backend/ai/brain.py - Research engine
backend/integrations/research_engine.py - Factor library
backend/research/src/factors/registry.py
Other components
- Investor
- Dhan market feed
- Telegram alerts
backend/integrations/telegram.py
Connections 22
- Investor → Tradeo web app: uses
README.md - Investor → Voice interface: speaks to
README.md - Tradeo web app → FastAPI backend: requests data
- FastAPI backend → Product API routes: registers routes
backend/main.py - FastAPI backend → Research engine: starts and checks
backend/integrations/research_engine.py - Market data → Watchtower scanner: feeds market data
README.md - News data → Watchtower scanner: supplies news
README.md - Watchtower scheduler → Watchtower scanner: runs scans
backend/realtime/engine.py - Watchtower scheduler → Telegram alerts: publishes alerts
backend/realtime/engine.py - Autopilot controls → Trading agents: starts agents
README.md - Trading agents → Pre-trade checks: checks ideas
README.md - Trading agents → Paper account: records trades
README.md - Pre-trade checks → Paper account: approves trades
README.md - Watchtower pipeline → Backtesting: backtests candidates
backend/api/routes/pipeline.py - Product API routes → Watchtower pipeline: runs pipeline
backend/api/routes/pipeline.py - Strategy sandbox → Backtesting: uses backtester
backend/strategies/engine.py - FastAPI backend → Tick ingestion: starts ingestion
backend/main.py - Tick ingestion → Dhan market feed: receives feed
backend/lowlatency/ingest.py - Tick ingestion → Low-latency bus: publishes ticks
backend/lowlatency/ingest.py - Tradeo web app → Local AI assistant: offers chat
README.md - Research engine → Factor library: provides research
- Investor → Paper account: reviews results
README.md