Fix LIVE open/close double-book and security audit findings.
Prevent expiry dual-close from re-booking option cash, abandon ledger rejection, margin-mode mismatch, and manual close races; harden fill wait and refuse default AUTH_SECRET on LIVE. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -5,6 +5,23 @@
|
||||
|
||||
---
|
||||
|
||||
## 2026-07-29 — 开平仓/实盘安全审计修复
|
||||
|
||||
### 变更
|
||||
|
||||
1. **Critical**:到期双平不再二次入账期权(`skip_option_cash` 跟 `pending_perp_only`)。
|
||||
2. **Critical**:弃期权平永续后本地账本强制 `allow_negative`,避免交易所已平、本地卡仓。
|
||||
3. 开仓写入 `groups.perp_margin_mode`;平仓用开仓时模式;持仓中禁止改保证金模式。
|
||||
4. 手动开/平仓走策略引擎锁,避免与自动 tick 竞态。
|
||||
5. OKX 等成交加长并超时有成交则回填;含 `ordId` 的未确认失败保留 `opening`。
|
||||
6. 修复 positions-history 盈亏查询未带时间过滤;LIVE 拒绝默认 `AUTH_SECRET`;币安可开不再误调 OKX 资金。
|
||||
|
||||
### 审计
|
||||
|
||||
详见 [`docs/审计说明-2026-07-29-开平仓与实盘安全.md`](./审计说明-2026-07-29-开平仓与实盘安全.md)。
|
||||
|
||||
---
|
||||
|
||||
## 2026-07-29 — 实盘资金读交易所;永续全仓/逐仓
|
||||
|
||||
### 变更
|
||||
|
||||
Reference in New Issue
Block a user