Skip to content

feat: requester-side combo RFQ support (request quote, accept, wait for fill) - #216

Draft
kartojal wants to merge 2 commits into
mainfrom
feature/dev-425-python-sdk-port-combos-requester-support
Draft

feat: requester-side combo RFQ support (request quote, accept, wait for fill)#216
kartojal wants to merge 2 commits into
mainfrom
feature/dev-425-python-sdk-port-combos-requester-support

Conversation

@kartojal

Copy link
Copy Markdown
Contributor

Implements DEV-425, porting the requester-side combo RFQ surface from the TypeScript SDK (Polymarket/ts-sdk#251) to idiomatic Python. Adds request_combo_quote, accept_combo_quote, wait_for_combo_fill, and fetch_rfq_status to SecureClient and AsyncSecureClient, backed by a new builder-gateway transport that attaches POLY_* L2 headers plus POLY_BUILDER_* headers on mutating requests (status reads are account-auth only).

Adaptations per the ticket: the BUY/SELL direction-sizing coupling is enforced at runtime via keyword arguments (amount= for BUY collateral, size= for SELL shares); RfqRejectionCode is a StrEnum with unknown-code passthrough; accept_combo_quote takes the ComboQuoteResult from the quote request since the status endpoint never returns the bundle. Business outcomes (no quotes, maker declined, expired acceptance window) are returned as result values, not raised.

Linear: DEV-425

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