Fix LIVE SoT P0/P1: closing state machine, OO exchange fills, BN balances.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-08 15:54:45 +08:00
parent 99e58910d3
commit 8d67f3fc6c
10 changed files with 864 additions and 167 deletions
+15
View File
@@ -5,6 +5,21 @@
---
## 2026-08-08 — 实盘 SoT 续修(closing / 期期 / 资金门)
### 变更
1. `closing` 进开仓拦截;引擎 manage/紧急处理 closingOKX 期期盈利腿收尾顺序对齐 BN。
2. 紧急/全平检测期期 → `close_oo_full`;盈利腿按交易所张数+真实均价,验空再落库。
3. 到期 fill 禁止 intrinsicrecover 识别 `oo_put:` 防孤儿 Putrepair/abandon 交易所 size。
4. 币安余额接入资金门;半自动出场前要求期权买一。
### 审计
`docs/审计修改方案-2026-08-08-交易所SoT续.md`;交割账单 API 未接,ITM 零价镜像 PnL 可能偏低(仓位 SoT 优先)。
---
## 2026-08-08 — 实盘以交易所为 SoT(到期只平永续)
### 变更