Repository navigation
feat: add RFQ trade history support - #15
Merged
Merged
Conversation
poly-william
approved these changes
Oct 6, 2026
3 tasks done
watashi
pushed a commit
to watashi/polymarket-us-python
that referenced
this pull request
Oct 12, 2026
feat(streams): clob user websocket stream
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.
Changes
Add
rfqs.trades()to both Python clients for authenticated RFQ trade history, with typed filters, responses and the existing liverfqTradeevent. Preserve decimal strings, timestamps and opaque cursors through the existing transport.Document manual pagination, empty continuation pages and recovery from the live stream using overlapping queries and trade-ID deduplication. These are anonymous original fills; later corrections and busts are not reflected.
Follows https://github.com/Polymarket/go-gateway-us/pull/2307. Sets version 2.3.0. This is independent of #14 and will release first; the batch-order follow-up will use 2.4.0.
Testing
Checklist
pytest)ruff check .)mypy polymarket_us)Note
Low Risk
Additive SDK surface (new resource method and types) with tests; no changes to order placement or core auth transport beyond a new authenticated GET.
Overview
Adds authenticated RFQ trade history via
client.rfqs.trades()on sync and async clients, callingGET /v1/rfqs/tradeswith typedGetRFQTradesParams/GetRFQTradesResponseandRFQTraderecords (decimal strings, cursor pagination).Extends private
rfq_eventtypings withrfqTradeso live anonymous RFQ fills match the history shape. README documents manual pagination, empty pages with nonempty cursors, eventual consistency, and gap recovery via overlapping queries andtradeIddeduplication.Bumps package version to 2.3.0 and adds HTTP/WebSocket regression tests for signing, filters, auth/errors, and live
rfqTradecallbacks.Reviewed by Cursor Bugbot for commit cdd9952. Bugbot is set up for automated code reviews on this repo. Configure here.