How aritradeb2000/atbot works
ATBot is a browser-based Indian-equity research and decision-support app, not a trading system. Users explore market/news, screen stocks, or request stock analysis; the backend gathers data, scores signals, and serves results. Learning tracks outcomes and adaptive weights, while optimizer and scheduled paper allocation support portfolio research. The graph reflects README capabilities and sampled module references; some scheduler and provider wiring is not fully shown, so uncertain links are omitted.
Main entry points: routes API routes · scheduler.py Refresh scheduler · database.py Application database · outcome_tracker.py Outcome tracking
Components 22
Browser app
- Research pages
frontend/src/app
API surface
- API routes
backend/api/routes - Live cache socket
backend/api/websocket.py
Research pipeline
- Technical scoring
backend/engines/technical_engine.py - Fundamental scoring
backend/engines/fundamental_engine.py - Sentiment scoring
backend/engines/sentiment_engine.py - Signal ensemble
backend/engines/ensemble_scorer.py
Portfolio and learning
- Allocation optimizer
backend/engines/portfolio_optimizer.py - Paper allocation
backend/engines/portfolio_manager.py - Outcome tracking
backend/engines/outcome_tracker.py - Adaptive learner
backend/engines/meta_learner.py - PDF reports
backend/engines/report_generator.py
Data and persistence
- Price history
backend/data/market_data.py - NSE live data
backend/data/nse_live.py - NSE universe
backend/data/nse_universe.py - Fundamental data
backend/data/fundamentals.py - News feeds
backend/data/news_feed.py - Refresh scheduler
backend/data/scheduler.py - Application database
backend/models/database.py - Stored records
backend/models/schemas.py
Other components
- Investor
- Market and news providers
Connections 31
- Investor → Research pages: explores
README.md - Research pages → API routes: requests data
README.md - API routes → Price history: fetches prices
backend/api/routes/analysis.py - API routes → Fundamental data: fetches metrics
backend/api/routes/analysis.py - API routes → News feeds: fetches articles
backend/api/routes/analysis.py - API routes → NSE live data: gets live data
backend/api/routes/analysis.py - API routes → Technical scoring: computes indicators
backend/api/routes/analysis.py - API routes → Fundamental scoring: scores fundamentals
backend/api/routes/analysis.py - API routes → Sentiment scoring: scores sentiment
backend/api/routes/analysis.py - API routes → Signal ensemble: combines scores
backend/api/routes/analysis.py - API routes → NSE universe: screens symbols
backend/api/routes/screener.py - API routes → Allocation optimizer: requests allocation
backend/api/routes/optimizer.py - API routes → Application database: reads and writes
backend/api/routes/settings.py - Refresh scheduler → Price history: refreshes prices
backend/data/scheduler.py - Refresh scheduler → NSE live data: refreshes market
backend/data/scheduler.py - Refresh scheduler → News feeds: refreshes news
backend/data/scheduler.py - Refresh scheduler → Fundamental data: refreshes metrics
backend/data/scheduler.py - Refresh scheduler → Outcome tracking: checks outcomes
backend/data/scheduler.py - Refresh scheduler → Paper allocation: runs allocation
backend/data/scheduler.py - Outcome tracking → Application database: records results
backend/engines/outcome_tracker.py - Adaptive learner → Application database: loads and saves weights
backend/engines/meta_learner.py - API routes → Outcome tracking: serves learning
backend/api/routes/learn.py - API routes → Adaptive learner: loads adaptive weights
backend/api/routes/learn.py - API routes → PDF reports: generates reports
backend/api/routes/learn.py - API routes → Application database: queries records
backend/api/routes/learn.py - API routes → Refresh scheduler: reads cached data
backend/api/routes/market.py - Live cache socket → Refresh scheduler: streams cache
backend/api/websocket.py - Price history → Market and news providers: fetches market history
README.md - NSE live data → Market and news providers: fetches NSE data
README.md - News feeds → Market and news providers: fetches news
README.md - Application database → Stored records: creates tables
backend/models/database.py