Skip to content

fix(orderbook): classify ladder market-order failures exactly as maker failures - #355

Merged
jackhai9 merged 1 commit into
mainfrom
fix/taker-maker-parity
Nov 13, 2026
Merged

jackhai9 merged 1 commit into
mainfrom
fix/taker-maker-parity

Conversation

@jackhai9

Copy link
Copy Markdown
Owner

Problem

The ladder taker path added its own stops where the maker path continues a continuous close:

  • an unknown outcome (5xx, no response, unrecognized result) without account-stream proof within 5 s stopped the task with 吃单结果未确认,已停止;
  • HTTP 418/429 took the same path, because only a 2xx counts as a confirmed rejection;
  • any dialog that appeared after the click stopped the task, even after the order was accepted.

Change

  • Without account-stream proof, the maker acknowledgement error is rethrown, so the maker classification applies: rate limit waits and resumes, unconfirmed submission ends the round and continuous close resumes, other failures end the task. The same slot is never resent within the round.
  • A single rate-limited response with no success returns the slot to the session carry (still capped at one order).
  • A new dialog stops the task only while no place-order request has left the page (it holds the order and is never confirmed); afterwards it is ignored as for makers.
  • Version 2.7.253; development manual updated.

Validation

  • Updated and new e2e scenarios: bare 503 resumes the next round; 503 with 90802022 and -1007 with a native notice end the task as for makers; 429 waits and keeps the owed slot (verified to fail without the refund); dialog after a placed order continues.
  • npm test: 2693 passed. npx playwright test: 709 passed. npm run lint:tests, npm run check:binance-orderbook-trade, git diff --check pass.
  • Read-only review: approve with notes; test strength, multi-response refund and doc wording findings addressed.
  • Not exercised live on Binance.

🤖 Generated with Claude Code

…r failures

The taker path stopped the whole task where a maker continues: an unknown
outcome without account-stream proof, an HTTP 418/429 rate limit, and any new
dialog after the click. Without proof the maker acknowledgement error is now
rethrown, so an unconfirmed submission ends only the round and a rate limit
waits; a single rate-limited response returns its slot to the session carry.
A dialog still stops the task only while no request has left the page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jackhai9
jackhai9 merged commit c870e9f into main Nov 13, 2026
2 of 4 checks passed
@jackhai9
jackhai9 deleted the fix/taker-maker-parity branch November 13, 2026 07:06
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