Atlas 技術版 > 個股融資資料爬取

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

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

(purpose 尚未填寫 — manifest 為 draft/INFERRED)

3. Schedule / Mode

mode=NO_AGENT state=scheduled enabled=1
schedule=5 21 * * *
next_run=2026-10-21T21:05:00 last_run=2026-10-20T21:05:18
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:64
FINMIND_URLhttps://api.finmindtrade.com/api/v4/dataCODE_STATIC @fetch_stock_margin.py:65
LAST_MARGIN_SOURCE_DATE{date}CODE_STATIC @fetch_stock_margin.py:131

7/8. Inputs & Outputs (resources)

kindpathnameaccess
SQLITE_TABLEselfstock_marginwrite
FILE_READ/Users/exion/workspace/stock_list.jsonread
FILE_READ/Users/exion/.hermes/data/stock_list.jsonread
FILE_READ/Users/exion/workspace/stock_list.jsonread
FILE_WRITE/tmp/stock_margin_latest.jsonwrite
FILE_WRITE/tmp/stock_margin_latest.jsonwrite
MODULE/Users/exion/.hermes/lib/trading_calendar.pytrading_calendarimport

9/10. Upstream / Downstream

Upstream: —
Downstream: 每日帳戶資產記錄、E7×C20 影子策略每日 EOD(ingest→雙帳→月報→通知)、Shioaji每日股價抓取、E7 Control vs C20 Prospective Lifetime Shadow、13:07 盤中狀態通知、DAILY_E7_FORMAL 每日正式訊號、處置股票狀態查詢、TH-0154 Runner參考線自然驗收讀回(一次)、Intraday Holdings Risk Owner、早盤風向-0945、持股同步觀察清單、盤中13:00帶量長紅K掃描、三大法人買賣超每日更新
Transitive downstream (11): 週日長紅K回測報告(現行規則:停損+20MA停利) (68ea49353330)、層零市場風險過濾器 (11c1041f48b4)、盤中持股即時快照1300 (d94622a2d6b8)、13:08 盤中決策摘要資料準備 (8f2a6c1d9b44)、13:09 盤中決策摘要 (b7d94e3a1c20)、Discovery FORMAL Fundamental Dingmao Review (904870b67948)、Prospective Shadow Exit Runner Intraday (b4937395cbb3)、Discovery Entry Observation Runtime (c5c5e8b6e055)、Prospective Shadow Exit Runner Close (7d5d77ea5e13)、系統健康檢查 (565ad371fad2)、定錨追蹤變動通知 (85610579e9e1)

Edges (typed evidence)

typehard?fromtoresourceoriginconfevidence
CODEsoft個股融資資料爬取每日帳戶資產記錄module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft個股融資資料爬取E7×C20 影子策略每日 EOD(ingest→雙帳→月報→通知)module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft個股融資資料爬取Shioaji每日股價抓取module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft個股融資資料爬取E7 Control vs C20 Prospective Lifetime Shadowmodule:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft個股融資資料爬取13:07 盤中狀態通知module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft個股融資資料爬取DAILY_E7_FORMAL 每日正式訊號module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft個股融資資料爬取處置股票狀態查詢module:trading_calendarSTATIC0.6both scripts import shared module 'trading_calendar'
CODEsoft個股融資資料爬取TH-0154 Runner參考線自然驗收讀回(一次)module: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