Recover stuck opening and harden LIVE open/close reconcile.
Stamp open intent, recover opening from exchange option/perp state, skip resell/reopen when already flat, and persist Binance margin mode. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -5,6 +5,22 @@
|
||||
|
||||
---
|
||||
|
||||
## 2026-07-29 — 第三轮:opening 恢复 / 期权对账 / 平仓兜底
|
||||
|
||||
### 变更
|
||||
|
||||
1. 开仓意图 `stamp_opening_intent`:崩溃后仍带 `option_inst_id` 可恢复。
|
||||
2. `recover_opening`:空仓清槽 / 仅期权→half_open+repair / 双边→提升 open;启动与 tick / 紧急全平触发。
|
||||
3. 开仓前对账增加期权仓(含 flat 时任意期权残留)。
|
||||
4. 平仓:期权已空跳过再卖;有 close fill 不二次入账;pending 且永续已空不下单。
|
||||
5. 永续开仓异常先查仓再决定是否回滚期权;币安错误带 `orderId=`;币安保证金模式落库并 `set_margin_type`。
|
||||
|
||||
### 审计
|
||||
|
||||
详见 [`docs/审计说明-2026-07-29-开平仓与实盘安全.md`](./审计说明-2026-07-29-开平仓与实盘安全.md)。
|
||||
|
||||
---
|
||||
|
||||
## 2026-07-29 — 第二轮审计:abandon residual / 部分成交 / residual 账本
|
||||
|
||||
### 变更
|
||||
|
||||
Reference in New Issue
Block a user