Repository navigation
fix(orderbook): check taker notional at the mark price and keep settings changes recoverable - #353
Merged
Merged
Conversation
…ngs changes recoverable Opening taker orders: Binance values MARKET orders at the mark price for MIN_NOTIONAL. A raised JCTUSDT open short was still rejected with 90804164 because the mark price sat below the book. Taker quantity now covers 102% of the minimum at min(best bid, best ask, mark). The mark price is read from the ticker by its visible label (标记价格 / Mark, both observed): exactly one label with a single value container counts, and the value must lie between bid -5% and ask +5%. A missing or ambiguous label, or an out-of-band value, places the slot Post Only and raises the taker-mark-price dependency alert; a placeholder value does so silently. A 90804164 rejection now places the round's remaining slots Post Only instead of failing the round. Reduce-only recovery: a JCTUSDT continuous close stopped at round 176/184 because a precision change fell inside the recovery window, where every error was wrapped as a terminal recovery failure. precision_changed and options_changed now pass through so the session continues with the new settings, as it does outside recovery; the recovery rebuild reports option changes as options_changed. A failed replacement is evaluated first and stays terminal; the cancellation adapter reports a settings change only when no cancellation outcome is unknown, and confirmed identities are recorded before its scope check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problems (live, JCTUSDT)
90804164("订单名义价值不得小于5"): Binance values MARKET orders at the mark price forMIN_NOTIONAL(docs), and the mark price was below the book.执行中价格精度已变化,已停止 · 只减仓订单被拒绝 … 90802022: the precision change fell inside reduce-only recovery, where every error was wrapped as a terminal recovery failure. Outside that window the same change continues the session, so it looked intermittent.Changes (2.7.251)
Taker notional
MIN_NOTIONALatmin(best bid, best ask, mark); CLOSE unchanged.标记价格zh-CN,Marken, both observed 2026-11-11): exactly one label with a single value container; value must lie in[bid −5%, ask +5%](works with coarse/aggregated books).taker-mark-pricedependency alert; placeholder (--) → Post Only silently.90804164→ round's remaining slots Post Only instead of failing the round.Reduce-only recovery
precision_changed/options_changedpass through the recovery runner so the session continues with the new settings next round; the recovery rebuild reports option changes asoptions_changed(was a terminal English error).settings_changedonly when its scope check raised the change (no unknown cancellation outcome); confirmed identities are recorded before that check.Validation
/fapi/v1/premiumIndexwithin 0.1%; English page labelMarkwith value73,745.9observed.90804164continuation); regressions failed before the fixes.npm test2693 passed;npm run test:ui706 passed;lint:tests,lint:ui-copy,check:binance-userscripts,check:binance-orderbook-trade,git diff --checkpass.🤖 Generated with Claude Code