How sameer-stack23/indexcollector works
IndexCollector collects five-minute NIFTY candle data from Angel One, stores full candle records in SQLite, and maintains a row-wise CSV of close-minus-open values. Its main workflow is scheduled/live collection or batched historical import, followed by persistence and CSV synchronization. A local dashboard can start, stop, and monitor the collector. The excerpts show the orchestration and dashboard control paths; broader links are omitted where the sampled code does not establish them.
Main entry points: main.py Collector runtime · angel_feed.py Angel feed · config.py Settings · database.py Candle store
Components 11
Collection runtime
- Collector runtime
IndexCollector.py/main.py - Settings
IndexCollector.py/config.py - Market time
IndexCollector.py/market_time.py
Market data
- Angel feed
IndexCollector.py/angel_feed.py
Persistence and export
- Candle store
IndexCollector.py/database.py - CSV export
IndexCollector.py/export_csv.py
Local dashboard
- Dashboard UI
IndexCollector.py/dashboard/static/app.js - Dashboard API
IndexCollector.py/dashboard/app.py - Process manager
IndexCollector.py/dashboard/collector_manager.py
Other components
- Operator
- Angel One
Connections 13
- Operator → Dashboard UI: controls
IndexCollector.py/dashboard/static/app.js - Dashboard UI → Dashboard API: requests status
IndexCollector.py/dashboard/static/app.js - Dashboard API → Process manager: manages process
IndexCollector.py/dashboard/app.py - Process manager → Collector runtime: starts process
IndexCollector.py/dashboard/collector_manager.py - Collector runtime → Angel feed: fetches candles
IndexCollector.py/main.py - Angel feed → Angel One: requests market data
IndexCollector.py/angel_feed.py - Collector runtime → Candle store: saves candles
IndexCollector.py/main.py - Collector runtime → CSV export: syncs CSV
IndexCollector.py/main.py - Collector runtime → Settings: reads settings
IndexCollector.py/main.py - Collector runtime → Market time: uses market time
IndexCollector.py/main.py - Angel feed → Settings: reads settings
IndexCollector.py/angel_feed.py - Angel feed → Market time: uses time helpers
IndexCollector.py/angel_feed.py - Candle store → Settings: reads database setting
IndexCollector.py/database.py