← 工作地圖

每日帳戶資產記錄 NO_AGENT P2 risk=HIGH

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

每日帳戶資產記錄:收盤後記錄帳戶淨值到 account_balance 表,追蹤資產曲線。

3. Schedule / Mode

mode=NO_AGENT state=scheduled enabled=1
schedule=0 16 * * *
next_run=2026-08-24T16:00:00 last_run=2026-08-23T16:00:02
deliver=origin model=— provider=—

4. Implementation

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

5. Effective instruction sources

prompt_sha256=e3b0c44298fc1c14… chars=0
skill_files={}

6. Actual rules / thresholds

rulevaluesource
DB_PATH~/.hermes/data/shioaji_kline.dbCODE_STATIC @record_account_balance.py:70

7/8. Inputs & Outputs (resources)

kindpathnameaccess
SQLITE_DB/Users/exion/.hermes/data/shioaji_kline.dbread/write
SQLITE_TABLEselfcash_flowread
SQLITE_TABLEselfapp_configread
SQLITE_TABLEselfcash_flowread
SQLITE_TABLEselfaccount_balanceread
SQLITE_TABLEselfaccount_balanceread
SQLITE_TABLEselfaccount_balanceread
SQLITE_TABLEselfaccount_balanceread
SQLITE_TABLEselfcash_flowread
SQLITE_TABLEselfaccount_balanceread
SQLITE_TABLEselfcash_flowwrite
SQLITE_TABLEselfapp_configwrite
SQLITE_TABLEselfaccount_balancewrite
SUBPROCESSsecurityexecute

9/10. Upstream / Downstream

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

Edges (typed evidence)

typehard?fromtoresourceoriginconfevidence
DATAsoft週日長紅K回測報告(現行規則:停損+20MA停利)每日帳戶資產記錄/users/exion/.hermes/data/shioaji_kline.dbSTATIC0.35shared DB-level resource /users/exion/.hermes/data/shioaji_kline.db (no table evidence)
DATAsoft盤中持股即時快照1300每日帳戶資產記錄/users/exion/.hermes/data/shioaji_kline.dbSTATIC0.35shared DB-level resource /users/exion/.hermes/data/shioaji_kline.db (no table evidence)
DATAsoft每日帳戶資產記錄週日長紅K回測報告(現行規則:停損+20MA停利)/users/exion/.hermes/data/shioaji_kline.dbSTATIC0.35shared DB-level resource /users/exion/.hermes/data/shioaji_kline.db (no table evidence)
DATAsoft每日帳戶資產記錄盤中持股即時快照1300/users/exion/.hermes/data/shioaji_kline.dbSTATIC0.35shared DB-level resource /users/exion/.hermes/data/shioaji_kline.db (no table evidence)
CODEsoft每日帳戶資產記錄盤後市場宏觀報告module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoftShioaji每日股價抓取每日帳戶資產記錄module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoftholdings-deploy每日帳戶資產記錄module: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'
CODEsoftshioaji-holdings-sync每日帳戶資產記錄module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoftIntraday Holdings Risk Owner每日帳戶資產記錄module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft早盤風向-0945每日帳戶資產記錄module: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個股融資資料爬取每日帳戶資產記錄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