Skip to content

Commit 58ab193

Browse files
authored
Add Chinese strategy run persistence docs (#22)
1 parent b9f5ef1 commit 58ab193

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,19 @@ trading-day execution window is still open. A pure insufficient-cash block is
212212
recorded as `FUNDING_BLOCKED` with the skipped-order reason and is not retried
213213
automatically for that period.
214214

215+
中文说明:启用 `FIRSTRADE_PERSIST_STRATEGY_RUNS=true` 且配置 GCS state bucket
216+
后,`/run` 会把策略运行状态写入
217+
`strategy-runs/<masked-account>/<strategy-profile>/<yyyy-mm>/latest.json`
218+
并写入带时间戳的历史路径。记录包含目标计划、脱敏后的组合快照、评估元数据、
219+
已提交订单、跳过订单和 stage。常见 stage 包括 `ORDERS_PLANNED`
220+
`DRY_RUN_COMPLETED``NO_ACTION``SUBMITTED``EXECUTION_BLOCKED`
221+
`PARTIAL_SUBMITTED``FUNDING_BLOCKED`。实盘运行中,同一账户、同一
222+
profile、同一月份已有终态记录时,会阻止重复提交订单。终态包括 `SUBMITTED`
223+
`FUNDING_BLOCKED``RECONCILED``COMPLETED`。例如报价不可用这类临时
224+
执行阻塞会保持非终态,scheduler 可在策略交易日执行窗口内重试;如果纯粹是现金
225+
不足以买入一整股,则记录为 `FUNDING_BLOCKED`,通知和日志会带跳过原因,
226+
同一周期不会自动重复重试。
227+
215228
## Cloud Run Shape
216229

217230
`main.py` exposes:

0 commit comments

Comments
 (0)