Skip to content

feat: surface Poly-RateLimit state on rate-limit errors and via on_rate_limit_update - #221

Draft
kartojal wants to merge 2 commits into
mainfrom
feature/dev-481-unified-python-sdk-clob-rate-limit-headers-poly-ratelimit
Draft

feat: surface Poly-RateLimit state on rate-limit errors and via on_rate_limit_update#221
kartojal wants to merge 2 commits into
mainfrom
feature/dev-481-unified-python-sdk-clob-rate-limit-headers-poly-ratelimit

Conversation

@kartojal

Copy link
Copy Markdown
Contributor

Implements DEV-481.

  • RateLimitError now carries retry_after (from Retry-After, matching RequestRejectedError) and rate_limit, the Poly-RateLimit-* state reported with a 429 rejection.
  • New on_rate_limit_update option on SecureClient.create / AsyncSecureClient.create: a listener invoked whenever a response reports per-signer rate-limit state (remaining, reset, tier, warning), including warning-mode monitoring before live enforcement.

https://linear.app/polymarket/issue/DEV-481

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