三大法人買賣超每日更新:TWSE/TPEx 爬蟲寫入 shioaji_kline.db 的 stock_institutional 表,是層零過濾器與多個下游的關鍵資料生產者。
mode=NO_AGENT state=scheduled enabled=1
schedule=30 17 * * 1-5
next_run=2026-08-24T17:30:00 last_run=2026-08-21T17:31:35
deliver=local model=— provider=—
script=/Users/exion/.hermes/scripts/fetch_institutional.py
monitor_script=— monitor_url=—
skills=[]
workdir=—
prompt_sha256=99f0d507b76afed4… chars=329
skill_files={}
執行三大法人買賣超資料更新腳本。 執行命令:python3 ~/.hermes/scripts/fetch_institutional.py 這個腳本會: 1. 從 TWSE T86 API 爬上市股票三大法人買賣超 2. 從 TPEx 新版 API (POST /www/zh-tw/insti/dailyTrade) 爬櫃買股票三大法人買賣超 3. 只存關注清單內的股票到 ~/.hermes/data/shioaji_kline.db 的 stock_institutional 資料表 執行完畢後,根據執行結果回覆以下格式(僅此一行,不要多說): - 成功:「✅ 三大法人資料更新完成」 - 失敗:「❌ 三大法人資料更新失敗:[簡短錯誤原因]」…
| rule | value | source |
|---|---|---|
| none extracted | ||
| kind | path | name | access |
|---|---|---|---|
| SQLITE_TABLE | self | stock_institutional | read |
| SQLITE_TABLE | self | stock_institutional | write |
Upstream: 個股融資資料爬取
Downstream: 層零市場風險過濾器、盤後市場宏觀報告、每日帳戶資產記錄、Shioaji每日股價抓取、holdings-deploy、系統健康檢查、持股每日健康檢查、處置股票狀態查詢、shioaji-holdings-sync、Intraday Holdings Risk Owner、早盤風向-0945、持股同步觀察清單、盤中13:00帶量長紅K掃描
Transitive downstream (4): Legacy 13:02 Integrated Shadow Comparison (d03be33d1781)、Discovery FORMAL Fundamental Dingmao Review (904870b67948)、週日長紅K回測報告(現行規則:停損+20MA停利) (68ea49353330)、盤中持股即時快照1300 (d94622a2d6b8)
| type | hard? | from | to | resource | origin | conf | evidence |
|---|---|---|---|---|---|---|---|
| DATA | soft | 三大法人買賣超每日更新 | 層零市場風險過濾器 | sqlite:stock_institutional | STATIC | 0.75 | table 'stock_institutional' write@d768546515da(line 199) -> read@11c1041f48b4(line 30) |
| DATA | soft | 三大法人買賣超每日更新 | 系統健康檢查 | sqlite:stock_institutional | STATIC | 0.75 | table 'stock_institutional' write@d768546515da(line 199) -> read@565ad371fad2(line 92) |
| CODE | soft | 三大法人買賣超每日更新 | 盤後市場宏觀報告 | module:trading_calendar | STATIC | 0.6 | both scripts import shared module 'trading_calendar' |
| CODE | soft | 三大法人買賣超每日更新 | 每日帳戶資產記錄 | module:trading_calendar | STATIC | 0.6 | both scripts import shared module 'trading_calendar' |
| CODE | soft | 三大法人買賣超每日更新 | Shioaji每日股價抓取 | module:trading_calendar | STATIC | 0.6 | both scripts import shared module 'trading_calendar' |
| CODE | soft | 三大法人買賣超每日更新 | holdings-deploy | module:trading_calendar | STATIC | 0.6 | both scripts import shared module 'trading_calendar' |
| CODE | soft | 三大法人買賣超每日更新 | 持股每日健康檢查 | module:trading_calendar | STATIC | 0.6 | both scripts import shared module 'trading_calendar' |
| CODE | soft | 三大法人買賣超每日更新 | 處置股票狀態查詢 | module:trading_calendar | STATIC | 0.6 | both scripts import shared module 'trading_calendar' |
| CODE | soft | 三大法人買賣超每日更新 | shioaji-holdings-sync | module:trading_calendar | STATIC | 0.6 | both scripts import shared module 'trading_calendar' |
| CODE | soft | 三大法人買賣超每日更新 | Intraday Holdings Risk Owner | module:trading_calendar | STATIC | 0.6 | both scripts import shared module 'trading_calendar' |
| CODE | soft | 三大法人買賣超每日更新 | 早盤風向-0945 | module:trading_calendar | STATIC | 0.6 | both scripts import shared module 'trading_calendar' |
| CODE | soft | 三大法人買賣超每日更新 | 持股同步觀察清單 | module:trading_calendar | STATIC | 0.6 | both scripts import shared module 'trading_calendar' |
| CODE | soft | 三大法人買賣超每日更新 | 盤中13:00帶量長紅K掃描 | module:trading_calendar | STATIC | 0.6 | both scripts import shared module 'trading_calendar' |
| CODE | soft | 個股融資資料爬取 | 三大法人買賣超每日更新 | module:trading_calendar | STATIC | 0.6 | both scripts import shared module 'trading_calendar' |
| CODE | soft | 三大法人買賣超每日更新 | Shioaji每日股價抓取 | module:db_config | STATIC | 0.6 | both scripts import shared module 'db_config' |
failure_streak=0
last_error=—
delivery_error=—
change_risk=CRITICAL