Fix OKX abandon residual double-book and fill/residual ledger holes.
After dual-close leaves option pending, continue close_group instead of false residual; reject partial fills on wait timeout; LIVE residual settle allow_negative. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -115,7 +115,8 @@ class BinanceLiveExecutor(Matcher):
|
||||
except Exception as e:
|
||||
logger.exception("binance live open option failed")
|
||||
msg = str(e)
|
||||
if "orderId=" in msg or "orderId" in msg.lower():
|
||||
# 仅当错误带明确 orderId= 时保留 opening(避免校验文案误卡槽)
|
||||
if "orderId=" in msg:
|
||||
return OpenResult(
|
||||
ok=False,
|
||||
detail=f"币安开期权未确认成交(保留 opening 防重复开,请核对交易所): {e}",
|
||||
|
||||
Reference in New Issue
Block a user