Generate a daily pre-market brief for your watchlist
Когда использовать: You want a 30-second morning check on your 20 tickers before the open — overnight moves, earnings, obvious news.
Предварительные требования
- Alpaca account (free paper) — alpaca.markets → sign up → API keys on the dashboard
- Watchlist of symbols — Plain list like [AAPL, MSFT, NVDA, ...]
Поток
-
Pull overnight bar dataFor my watchlist [symbols], get yesterday's close and the latest pre-market quote. Compute % gap.✓ Скопировано→ Table: symbol, prev_close, pre_open, gap_pct
-
Flag outliersWhich tickers are gapping more than 2% in either direction? Rank by gap magnitude.✓ Скопировано→ Short 'needs attention' list
-
Add contextFor each outlier, pull the latest news headlines from Alpaca news endpoint.✓ Скопировано→ Per-ticker bullet with likely cause
Итог: A 1-screen daily pre-market brief, same shape every day, no manual clicking.
Подводные камни
- 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