portfolio — real-time alerting backend
Stock Alerts Engine
Automated market surveillance.
A Python backend that continuously monitors live Yahoo Finance market data, evaluates user-defined technical and fundamental alert conditions asynchronously across multiple tickers, and delivers deduplicated notifications — with a MongoDB change-stream watcher that reloads the engine automatically when alert rules change.
Watching dozens of stocks for specific price levels, RSI zones, P/E thresholds, or DMA crossovers manually is impractical at scale. The Stock Alerts Engine replaces that manual process with a continuously running background service — alerts are stored in MongoDB, the engine subscribes to live Yahoo Finance WebSocket feeds grouped by ticker, evaluates conditions on every price update, and fires notifications at most once per day per alert using Redis-scoped expiry keys. When users modify their alert rules, a debounced MongoDB change-stream watcher restarts the monitoring service automatically.