← 工作地圖

個股融資資料爬取 NO_AGENT P2 risk=HIGH

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

個股融資資料爬取:21:05 抓個股融資餘額寫入 DB。

3. Schedule / Mode

mode=NO_AGENT state=scheduled enabled=1
schedule=5 21 * * *
next_run=2026-08-24T21:05:00 last_run=2026-08-23T21:05:52
deliver=local model=— provider=—

4. Implementation

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

5. Effective instruction sources

prompt_sha256=e3b0c44298fc1c14… chars=0
skill_files={}

6. Actual rules / thresholds

rulevaluesource
OUTPUT_PATH/tmp/stock_margin_latest.jsonCODE_STATIC @fetch_stock_margin.py:53
FINMIND_URLhttps://api.finmindtrade.com/api/v4/dataCODE_STATIC @fetch_stock_margin.py:54

7/8. Inputs & Outputs (resources)

kindpathnameaccess
SQLITE_TABLEselfstock_marginwrite
FILE_WRITE/tmp/stock_margin_latest.jsonwrite

9/10. Upstream / Downstream

Upstream:
Downstream: 盤後市場宏觀報告、每日帳戶資產記錄、Shioaji每日股價抓取、holdings-deploy、持股每日健康檢查、處置股票狀態查詢、shioaji-holdings-sync、Intraday Holdings Risk Owner、早盤風向-0945、持股同步觀察清單、盤中13:00帶量長紅K掃描、三大法人買賣超每日更新
Transitive downstream (6): Legacy 13:02 Integrated Shadow Comparison (d03be33d1781)、系統健康檢查 (565ad371fad2)、層零市場風險過濾器 (11c1041f48b4)、Discovery FORMAL Fundamental Dingmao Review (904870b67948)、週日長紅K回測報告(現行規則:停損+20MA停利) (68ea49353330)、盤中持股即時快照1300 (d94622a2d6b8)

Edges (typed evidence)

typehard?fromtoresourceoriginconfevidence
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'

11. Shared resources

12. Recent executions

failure_streak=0
last_error=
delivery_error=

14. Drift history

16. Impact / change risk

change_risk=HIGH