A Python-based stock monitoring tool that sends real-time alerts when a stock's 5-minute candle closes above or below its premarket high or low.
Built using the Alpaca API for live stock data and integrated with Telegram for fast alerts.
- ๐ Fetches premarket high/low for each ticker from 4:00 AM to 9:25 AM EST
- ๐ก Monitors live 1-minute price bars using Alpaca WebSocket
- ๐ Sends alert only when a 5-minute candle closes above/below the premarket levels
- ๐ฌ Instant alerts via Telegram bot
- Python 3.8+
- A free Alpaca paper trading account
- A Telegram bot + chat ID (see setup below)
- API keys stored in a
.envfile
