Skip to content

feat(errors): expose typed trading restrictions for engine restarts and restricted modes - #214

Draft
kartojal wants to merge 1 commit into
mainfrom
feature/dev-452-expose-matching-engine-restart-and-restricted-mode-details
Draft

feat(errors): expose typed trading restrictions for engine restarts and restricted modes#214
kartojal wants to merge 1 commit into
mainfrom
feature/dev-452-expose-matching-engine-restart-and-restricted-mode-details

Conversation

@kartojal

Copy link
Copy Markdown
Contributor

Implements DEV-452 (Python side of ts-sdk #248).

  • RequestRejectedError.restriction (TradingRestriction: "restarting" / "cancel_only" / "post_only") distinguishes HTTP 425 restarts and 503 restricted modes without message parsing.
  • Batch post-only rejections map to RejectedOrder(code="post_only_mode") instead of "unknown".
  • retry_after (header with retry_after_seconds body fallback) already landed in fix(errors): expose retry_after on RequestRejectedError #187; restricted-mode responses now carry it alongside the typed restriction.
  • The SDK still does not retry automatically.

Linear: DEV-452

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