← 工作地圖

shioaji-holdings-sync NO_AGENT P1 risk=CRITICAL

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

shioaji-holdings-sync:從 Shioaji 拉即時庫存寫入 portfolio_snapshots 表,供持股健檢與系統健康檢查讀取。

3. Schedule / Mode

mode=NO_AGENT state=scheduled enabled=1
schedule=25 15 * * *
next_run=2026-08-24T15:25:00 last_run=2026-08-23T15:25:57
deliver=telegram model=— provider=—

4. Implementation

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

5. Effective instruction sources

prompt_sha256=1097523941b9434b… chars=51
skill_files={}

執行 Shioaji 庫存同步腳本,更新 stock_list.json 的 holdings 陣列。…

6. Actual rules / thresholds

rulevaluesource
EXEC_IDHERMES_CRON_JOB_IDCODE_STATIC @sync_holdings_from_shioaji.py:53
MAX_RETRIES3CODE_STATIC @sync_holdings_from_shioaji.py:58
RETRY_DELAY5CODE_STATIC @sync_holdings_from_shioaji.py:59

7/8. Inputs & Outputs (resources)

kindpathnameaccess
SQLITE_TABLEselfportfolio_snapshotsread
SQLITE_TABLEselfportfolio_snapshotswrite
SQLITE_TABLEselfportfolio_snapshotswrite

9/10. Upstream / Downstream

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

Edges (typed evidence)

typehard?fromtoresourceoriginconfevidence
DATAsoftshioaji-holdings-sync系統健康檢查sqlite:portfolio_snapshotsSTATIC0.75table 'portfolio_snapshots' write@70a918c3f294(line 203) -> read@565ad371fad2(line 129); table 'portfolio_snapshots' write@70a918c3f294(line 214) -> read@565ad371fad2(line 129)
CODEsoftshioaji-holdings-sync盤後市場宏觀報告module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoftshioaji-holdings-sync每日帳戶資產記錄module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoftshioaji-holdings-syncShioaji每日股價抓取module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoftshioaji-holdings-syncholdings-deploymodule:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoftshioaji-holdings-sync持股每日健康檢查module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoftshioaji-holdings-sync處置股票狀態查詢module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoftIntraday Holdings Risk Ownershioaji-holdings-syncmodule:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft早盤風向-0945shioaji-holdings-syncmodule:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft持股同步觀察清單shioaji-holdings-syncmodule:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft盤中13:00帶量長紅K掃描shioaji-holdings-syncmodule:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft三大法人買賣超每日更新shioaji-holdings-syncmodule:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft個股融資資料爬取shioaji-holdings-syncmodule: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=CRITICAL