feat(openinsider): 新增 OpenInsider 內部人交易爬蟲,支援多標的與每日排程

- 新增 app/crawlers/openinsider.py,來源 http://openinsider.com/search?q={symbol}

- 支援多標的:以 SYMBOLS=PLTR,NVDA,... 同時追多檔(或使用 SYMBOL 單一)

- runner: 多實例排程與啟動;/check 會依序觸發全部爬蟲

- API: /info、/stats、/check、/notify_test 支援多爬蟲回應

- config/base: 新增 RUN_DAILY_AT 每日固定時間;未設定則用 CHECK_INTERVAL

- notifications: 新增 send_custom_email、send_text_webhook、send_text_discord

- README 與 .env.template 更新;.env 改為 CRAWLER_TYPE=openinsider

- 移除 quiver_insiders 爬蟲與相關設定

BREAKING CHANGE: 不再支援 CRAWLER_TYPE=quiver_insiders;請改用 openinsider。
This commit is contained in:
2025-09-04 22:32:29 +08:00
parent 58cc979b5b
commit e89567643b
8 changed files with 368 additions and 40 deletions

View File

@@ -1,5 +1,6 @@
# 基本設定
CHECK_INTERVAL=300
RUN_DAILY_AT=12:00
LOG_LEVEL=INFO
ALWAYS_NOTIFY_ON_STARTUP=false
@@ -23,3 +24,11 @@ DISCORD_WEBHOOK=https://discord.com/api/webhooks/YOUR/DISCORD/WEBHOOK
# 預設 Docker 會使用 /app/data、/app/logs本機則使用 ./data、./logs
# DATA_DIR=./data
# LOG_DIR=./logs
# 選擇爬蟲類型與參數
# 可選: barrons | openinsider
CRAWLER_TYPE=openinsider
# 針對內部人交易爬蟲的股票代號(單一)
SYMBOL=PLTR
# 或一次追多個:以逗號分隔
# SYMBOLS=PLTR,NVDA,TSLA