← 工作地圖

三大法人買賣超每日更新 NO_AGENT P0 risk=CRITICAL

1. 做什麼 / 2. 為什麼存在

三大法人買賣超每日更新:TWSE/TPEx 爬蟲寫入 shioaji_kline.db 的 stock_institutional 表,是層零過濾器與多個下游的關鍵資料生產者。

3. Schedule / Mode

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=—

4. Implementation

script=/Users/exion/.hermes/scripts/fetch_institutional.py
monitor_script= monitor_url=
skills=[]
workdir=—

5. Effective instruction sources

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 資料表

執行完畢後,根據執行結果回覆以下格式(僅此一行,不要多說):
- 成功:「✅ 三大法人資料更新完成」
- 失敗:「❌ 三大法人資料更新失敗:[簡短錯誤原因]」…

6. Actual rules / thresholds

rulevaluesource
none extracted

7/8. Inputs & Outputs (resources)

kindpathnameaccess
SQLITE_TABLEselfstock_institutionalread
SQLITE_TABLEselfstock_institutionalwrite

9/10. Upstream / Downstream

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)

Edges (typed evidence)

typehard?fromtoresourceoriginconfevidence
DATAsoft三大法人買賣超每日更新層零市場風險過濾器sqlite:stock_institutionalSTATIC0.75table 'stock_institutional' write@d768546515da(line 199) -> read@11c1041f48b4(line 30)
DATAsoft三大法人買賣超每日更新系統健康檢查sqlite:stock_institutionalSTATIC0.75table 'stock_institutional' write@d768546515da(line 199) -> read@565ad371fad2(line 92)
CODEsoft三大法人買賣超每日更新盤後市場宏觀報告module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft三大法人買賣超每日更新每日帳戶資產記錄module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft三大法人買賣超每日更新Shioaji每日股價抓取module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft三大法人買賣超每日更新holdings-deploymodule:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft三大法人買賣超每日更新持股每日健康檢查module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft三大法人買賣超每日更新處置股票狀態查詢module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft三大法人買賣超每日更新shioaji-holdings-syncmodule:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft三大法人買賣超每日更新Intraday Holdings Risk Ownermodule:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft三大法人買賣超每日更新早盤風向-0945module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft三大法人買賣超每日更新持股同步觀察清單module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft三大法人買賣超每日更新盤中13:00帶量長紅K掃描module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft個股融資資料爬取三大法人買賣超每日更新module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft三大法人買賣超每日更新Shioaji每日股價抓取module:db_configSTATIC0.6both scripts import shared module 'db_config'

11. Shared resources

12. Recent executions

failure_streak=0
last_error=
delivery_error=

14. Drift history

16. Impact / change risk

change_risk=CRITICAL