How kalwardin-dronzer/political_alpha_tracker works
Political Alpha Tracker is a political-connection and alternative-data research pipeline for Indian equities. Operators refresh company and donor data, then run a daily scan that evaluates announcements and related signals, scores opportunities, manages paper positions, and sends Telegram alerts. The repository also documents factor research and backtesting, portfolio sizing, and weekly reporting. Several capabilities are documented but their runtime wiring is not visible in the excerpts; those links are omitted or marked unverified. The README describes procurement L1 monitoring, but the sampled orchestrator explicitly skips it because its data is mock.
Main entry points: pipeline_orchestrator.py Pipeline orchestrator · cache_manager.py SQLite cache · refresh.py Refresh runner · alpha_engine.py Alpha engine
Components 32
Runtime entry points
- Daily runner
main.py - Refresh runner
refresh.py - Pipeline orchestrator
src/pipeline/pipeline_orchestrator.py - Configuration
src/config.py
Universe and data
- Watchlist funnel
src/data/watchlist_generator.py - Financial screener
src/data/financial_screener.py - Donor ingestion
src/data/donor_ingester.py - Entity resolution
src/data/entity_resolver.py - MCA director resolver
src/data/mca_resolver.py - CIN resolver
src/data/cin_resolver.py - BSE monitor
src/data/bse_monitor.py - SQLite cache
src/data/cache_manager.py
Signals and scoring
- Political graph
src/signals/graph_manager.py - Alpha engine
src/signals/alpha_engine.py - Insider tracker
src/signals/insider_tracker.py - Bulk deal monitor
src/signals/bulk_deal_monitor.py - Technical analyzer
src/signals/technical_analyzer.py - Factor engine
src/signals/factor_engine.py - Tender monitor
src/signals/tender_monitor.py - Pledge monitor
src/signals/pledge_monitor.py - Policy monitor
src/signals/policy_monitor.py - Macro event monitor
src/signals/macro_event_monitor.py - Lead-lag analysis
src/signals/lead_lag.py - Volume tracker
src/signals/volume_tracker.py
Portfolio and alerts
- Portfolio manager
src/execution/portfolio_manager.py - Telegram notifier
src/execution/notifier.py - Weekly tearsheet
src/execution/weekly_tearsheet.py
Research and validation
- Event backtester
src/research/backtest.py - Factor backtest
src/research/factor_backtest.py - Price store
src/data/price_store.py
Other components
- Operator
- Telegram
Connections 43
- Operator → Daily runner: runs
main.py - Daily runner → Pipeline orchestrator: starts
main.py - Operator → Refresh runner: refreshes
README.md - Refresh runner → Watchlist funnel: regenerates
refresh.py - Refresh runner → MCA director resolver: refreshes directors
refresh.py - Refresh runner → Entity resolution: resolves donors
refresh.py - Refresh runner → Donor ingestion: ingests
refresh.py - Refresh runner → Telegram notifier: sends summary
refresh.py - Watchlist funnel → Financial screener: filters fundamentals
src/data/watchlist_generator.py - Watchlist funnel → SQLite cache: persists candidates
src/data/watchlist_generator.py - Donor ingestion → SQLite cache: stores records
src/data/donor_ingester.py - Entity resolution → SQLite cache: resolves records
src/data/entity_resolver.py - MCA director resolver → SQLite cache: stores directors
src/data/mca_resolver.py - CIN resolver → SQLite cache: resolves identifiers
- Pipeline orchestrator → SQLite cache: reads watchlist
src/pipeline/pipeline_orchestrator.py - Pipeline orchestrator → Political graph: queries connections
src/pipeline/pipeline_orchestrator.py - Pipeline orchestrator → BSE monitor: scans announcements
src/pipeline/pipeline_orchestrator.py - Pipeline orchestrator → Alpha engine: processes events
src/pipeline/pipeline_orchestrator.py - Pipeline orchestrator → Insider tracker: checks insider activity
- Pipeline orchestrator → Bulk deal monitor: checks bulk deals
src/pipeline/pipeline_orchestrator.py - Pipeline orchestrator → Tender monitor: monitors tenders
src/pipeline/pipeline_orchestrator.py - Pipeline orchestrator → Pledge monitor: checks pledges
src/pipeline/pipeline_orchestrator.py - Pipeline orchestrator → Policy monitor: checks policy events
src/pipeline/pipeline_orchestrator.py - Pipeline orchestrator → Macro event monitor: checks macro events
src/pipeline/pipeline_orchestrator.py - Pipeline orchestrator → Volume tracker: scans volume
src/pipeline/pipeline_orchestrator.py - Alpha engine → Political graph: scores connections
src/signals/alpha_engine.py - Political graph → SQLite cache: loads company and donor data
src/signals/graph_manager.py - Alpha engine → Insider tracker: checks accumulation
src/signals/alpha_engine.py - Alpha engine → Bulk deal monitor: checks deals
src/signals/alpha_engine.py - Alpha engine → Technical analyzer: uses entry analysis
src/signals/alpha_engine.py - Pipeline orchestrator → Portfolio manager: manages positions
src/pipeline/pipeline_orchestrator.py - Pipeline orchestrator → Telegram notifier: sends alerts
src/pipeline/pipeline_orchestrator.py - Portfolio manager → Technical analyzer: uses indicators
src/execution/portfolio_manager.py - Portfolio manager → SQLite cache: stores positions
src/execution/portfolio_manager.py - Telegram notifier → Telegram: sends messages
README.md - Daily runner → Weekly tearsheet: runs report
main.py - Weekly tearsheet → Telegram notifier: sends report
src/execution/weekly_tearsheet.py - Event backtester → Political graph: tests political signals
src/research/backtest.py - Factor backtest → Factor engine: evaluates factors
src/research/factor_backtest.py - Factor backtest → Price store: uses price history
- Event backtester → SQLite cache: uses stored data
src/research/backtest.py - Daily runner → Configuration: loads settings
main.py - Refresh runner → Configuration: loads settings
refresh.py