Releases: GoPolymarket/polymarket-go-sdk
Releases · GoPolymarket/polymarket-go-sdk
Release list
v2.1.1: CI fixes and dependency bumps
Fixes
CI / Lint
Go CI's Lint & Format job had been failing since v2.1.0 because golangci-lint was pinned to latest, which pulled v2 with stricter defaults. CI's default issue capping also hid 26 of the 50 real violations, so the displayed failures were incomplete.
- Resolve all 50 golangci-lint violations: errcheck unchecked
Close()return values (20), staticcheck QF1008 redundant embedded-field selectors (29), and an unusedboolPtrhelper (1) - Pin golangci-lint to
v2.12.2in.github/workflows/go.yml(waslatest) for reproducible lint behavior - Add
.golangci.ymldisabling issue capping (max-issues-per-linter/max-same-issues) so the full violation list is always visible
Dependencies
github.com/ethereum/go-ethereum:v1.17.3→v1.17.4github.qkg1.top/aws/aws-sdk-go-v2/service/kms:v1.53.4→v1.54.0
No API changes. Safe patch upgrade.
v2.1.0: Full API alignment with Polymarket CLOB V2
What's New
New Packages
- Relayer API (
pkg/relayer): 7 endpoints for gasless transactions (Submit, GetTransaction, GetTransactions, GetNonce, GetRelayPayload, GetDeployed, GetAPIKeys) - Combo Markets API (
pkg/combo): combo market queries
New CLOB Endpoints (8)
ClobMarketInfo— CLOB-level market parametersMarketByToken— reverse token→market lookupMarketsLiveActivity/MarketLiveActivity— batch/single live activityBatchPricesHistory— batch historical pricesOrderBooksQuery— order books via query paramsNegRiskByPath— neg risk via path paramPutBalanceAllowance— force update balance/allowance
Bridge Completions (2)
Quote— bridge quoteWithdrawAddress— create withdrawal bridge addresses
Data API Additions (4)
AccountingSnapshot— download accounting ZIPMarketPositions— positions for a specific marketActivityCombos— combo activityPositionsCombos— combo positions
Gamma Addition (1)
TeamByID— single team lookup
Fix
- Order payload wire format:
saltandtimestampnow correctly sent as JSON strings for ALL signature types, matching Polymarket V2 API specification
Dependencies
aws-sdk-go-v2/service/kms: 1.52.0 → 1.53.4
All 19 packages pass tests and go vet.
v2.0.0
Polymarket CLOB V2 went live on April 28, 2026. This release migrates the Go SDK to V2.
Breaking Changes
Order Struct (clobtypes.Order)
- Removed:
Taker,Nonce,FeeRateBps - Added:
Timestamp(int64, ms),Metadata(string, bytes32 hex),Builder(string, bytes32 hex) Expirationkept in API payload but excluded from EIP-712 signature
EIP-712 Signing
- Domain version:
"1"→"2" - Exchange contract:
0x4bFb...→0xE111180000d2663C0091e4f400237545B87B996B - Signed message: 12-field → 11-field (removed taker/nonce/feeRateBps/expiration, added timestamp/metadata/builder)
OrderBuilder
- Removed:
FeeRateBps(),FeeRateBpsDec(),Nonce(),Taker() - Added:
Timestamp(),Metadata(),Builder(),TickSize()
RFQ Types
RFQAcceptRequest/RFQApproveQuote: removed Taker/Nonce/FeeRateBps
⎿ [main 54193f3] feat: migrate SDK to Polymarket CLOB V2
23 files changed, 227 insertions(+), 244 deletions(-)
v1.1.2
v1.1.1
What's Changed
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/kms from 1.50.2 to 1.50.3 in the minor-and-patch group by @dependabot[bot] in #34
- clobtypes OrderBook related structs update by @bububa in #35
- build(deps): bump the minor-and-patch group with 2 updates by @dependabot[bot] in #37
- fix gamma types error by @linxing in #41
- add timestamp from WS message by @Ispolin08 in #38
- fix(clob): support flexible order time fields & make govulncheck advisory by @dongowu in #42
New Contributors
- @bububa made their first contribution in #35
- @linxing made their first contribution in #41
- @Ispolin08 made their first contribution in #38
Full Changelog: v1.1.0...v1.1.1
v1.1.0
Bug Fixes
- Fix #33: MarketBySlug volume24hr type mismatch (string->float64)
- Fix #32: Bridge API camelCase JSON tags
Features
- Gamma: Add Market/Event fields (openInterest, volumeNum, gameStartTime, category, etc.)
- Data: Add Position fields (MatchTime, Fee, NegativeRisk)
- CLOB: Add Market fields (volume, liquidity, spread, bestBid, bestAsk)
- CLOB Client: Add LastTradesPricesQuery, TickSizeByPath, FeeRateByPath methods
- WebSocket: Support 'trades' and 'orders' event types
Maintenance
- Data: Fix EventIDs type []string->[]int64
- RFQ: Remove duplicate camelCase params, keep snake_case only
v1.0.10
What's Changed
- build(deps): bump the minor-and-patch group with 2 updates by @dependabot[bot] in #27
- Fix/clob orders flexible time fields by @dongowu in #30
- fix(clob): handle flexible order response fields in Orders() by @dongowu in #31
Full Changelog: v1.0.9...v1.0.10
v1.0.9
polymarket-go-sdk v1.0.9
Highlights
- Added a unified execution engine interface for place/cancel/query/replay.
- Added a normalized 6-state order lifecycle model.
- Added deterministic idempotency key specification.
- Added standardized retry policy for timeout/network/5xx scenarios.
- Added WebSocket reconnect + heartbeat policy.
- Added attribution passthrough fields (
builder/funder/source). - Added WebSocket schema compatibility tests for alias/shape changes.
Quality
- Fixed lint issues in execution lifecycle and retry policy to keep CI green.
Notes
- This release focuses on execution-core standardization and reliability hardening.
v1.0.8
v1.0.7
What's Changed
- fix: incorrect type for tick size by @lwtsn in #21
- Various fixes to SDK by @lwtsn in #22
- WS user trade event: Change Timestamp type from int64 to string by @scream7 in #24
- build(deps): bump the minor-and-patch group with 2 updates by @dependabot[bot] in #23
New Contributors
Full Changelog: v1.0.6...v1.0.7