Skip to content

fix(orderbook): free order capacity when a ladder market order hits the open-order limit - #354

Merged
jackhai9 merged 1 commit into
mainfrom
fix/taker-capacity-recovery
Nov 13, 2026
Merged

jackhai9 merged 1 commit into
mainfrom
fix/taker-capacity-recovery

Conversation

@jackhai9

Copy link
Copy Markdown
Owner

Problem

A QUSDT continuous close stopped at round 126/134 with 达到最大下单限制(错误码 90802025). The symbol holds at most 200 open orders (MAX_NUM_ORDERS), and Binance rejects any new order, including a market order, once that count is reached. The round's first slot was a taker, and only maker slots used the once-per-round capacity recovery, so the session ended.

Change

  • executeLadderPlan shares one recoverMaxOpenOrdersCapacity step between maker and taker slots. A confirmed taker rejection (one settled 2xx JSON response, success=false) has already returned its budget unit, so after the 50 farthest close orders are released the same market order is resent.
  • Unconfirmed taker outcomes, OPEN ladders, single rounds and reduce-only recovery keep their existing behavior.
  • Version 2.7.252; development manual updated.

Validation

  • New e2e regression fails on 2.7.251 with the live status and passes now.
  • npm test: 2693 passed. npx playwright test: 707 passed. npm run lint:tests, npm run check:binance-orderbook-trade, git diff --check pass.
  • Read-only review: approve with notes, no blocking findings.
  • Not exercised live: the taker capacity recovery on Binance.

🤖 Generated with Claude Code

…he open-order limit

Binance rejects a market order with 90802025 when the symbol already holds its
maximum open orders. A continuous close ended at that rejection because only
maker slots used the capacity recovery. A confirmed taker rejection now releases
the same once-per-round capacity and resends the same market order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jackhai9
jackhai9 merged commit 0130919 into main Nov 13, 2026
2 checks passed
@jackhai9
jackhai9 deleted the fix/taker-capacity-recovery branch November 13, 2026 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant