Generate a daily pre-market brief for your watchlist
Quand l'utiliser : You want a 30-second morning check on your 20 tickers before the open — overnight moves, earnings, obvious news.
Prérequis
- Alpaca account (free paper) — alpaca.markets → sign up → API keys on the dashboard
- Watchlist of symbols — Plain list like [AAPL, MSFT, NVDA, ...]
Déroulement
-
Pull overnight bar dataFor my watchlist [symbols], get yesterday's close and the latest pre-market quote. Compute % gap.✓ Copié→ Table: symbol, prev_close, pre_open, gap_pct
-
Flag outliersWhich tickers are gapping more than 2% in either direction? Rank by gap magnitude.✓ Copié→ Short 'needs attention' list
-
Add contextFor each outlier, pull the latest news headlines from Alpaca news endpoint.✓ Copié→ Per-ticker bullet with likely cause
Résultat : A 1-screen daily pre-market brief, same shape every day, no manual clicking.
Pièges
- Free market data is IEX-only and lags; quotes may not match your broker — Fine for overnight/EOD analysis; if you need SIP feed, upgrade to Alpaca's paid data plan