Skip to content

feat(auth): add authenticated rate limit tier lookup - #403

Draft
kartojal wants to merge 1 commit into
mainfrom
feat/dev-585-rate-limit-tier
Draft

kartojal wants to merge 1 commit into
mainfrom
feat/dev-585-rate-limit-tier

Conversation

@kartojal

@kartojal kartojal commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Adds get_rate_limit_tier() to SecureClient and AsyncSecureClient, using existing account authentication for GET /v1/user/rate-limit-tier. Returns exported RateLimitTier and RateLimitTierDetails models, preserves exact USDC volume as Decimal, and accepts omitted optional fields and custom tier names.

Contract verified against Polymarket/docs#512 and current public OpenAPI. Covers DEV-585, the Python counterpart of DEV-584.

Validation: 3,583 non-integration tests passed, including 65 focused auth/model/client cases; Ruff lint and format, Pyright, package build, and git diff --check passed. Tests verify exact GET-path signing, precise public return types, optional fields, malformed responses, and 401/503 propagation. Read-only Review SDK PR completed; added missing public-client malformed-response coverage, with no remaining actionable findings. Live authenticated tier reads were not run because this environment has no configured credentials.

This branch has not been deployed

No deployments
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