為你的自選清單產生每日盤前摘要
何時使用: 你希望在開盤前用 30 秒瀏覽自選的 20 檔標的——包含隔夜漲跌、財報及明顯新聞。
前置條件
- Alpaca 帳號(免費模擬帳戶) — alpaca.markets → 註冊 → 在儀表板取得 API 金鑰
- 自選股清單 — 純文字清單,例如 [AAPL, MSFT, NVDA, ...]
步驟
-
取得隔夜 K 線資料For my watchlist [symbols], get yesterday's close and the latest pre-market quote. Compute % gap.✓ 已複製→ 表格:symbol、prev_close、pre_open、gap_pct
-
標記異常標的Which tickers are gapping more than 2% in either direction? Rank by gap magnitude.✓ 已複製→ 簡短的「需注意」清單
-
補充背景資訊For each outlier, pull the latest news headlines from Alpaca news endpoint.✓ 已複製→ 每檔標的附帶可能原因的重點說明
結果: 一份每日一頁的盤前摘要,每天格式固定,無需手動點擊。
注意事項
- 免費市場資料僅限 IEX,有延遲,報價可能與你的券商不符 — 用於隔夜或收盤後分析沒問題;若需要 SIP 即時資料,請升級至 Alpaca 付費資料方案