Skip to content

Releases: GoPolymarket/polymarket-go-sdk

v2.1.1: CI fixes and dependency bumps

Choose a tag to compare

@dongowu dongowu released this 07 Jul 03:13

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 unused boolPtr helper (1)
  • Pin golangci-lint to v2.12.2 in .github/workflows/go.yml (was latest) for reproducible lint behavior
  • Add .golangci.yml disabling 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.3v1.17.4
  • github.com/aws/aws-sdk-go-v2/service/kms: v1.53.4v1.54.0

No API changes. Safe patch upgrade.

v2.1.0: Full API alignment with Polymarket CLOB V2

Choose a tag to compare

@dongowu dongowu released this 22 Jun 09:12

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 parameters
  • MarketByToken — reverse token→market lookup
  • MarketsLiveActivity / MarketLiveActivity — batch/single live activity
  • BatchPricesHistory — batch historical prices
  • OrderBooksQuery — order books via query params
  • NegRiskByPath — neg risk via path param
  • PutBalanceAllowance — force update balance/allowance

Bridge Completions (2)

  • Quote — bridge quote
  • WithdrawAddress — create withdrawal bridge addresses

Data API Additions (4)

  • AccountingSnapshot — download accounting ZIP
  • MarketPositions — positions for a specific market
  • ActivityCombos — combo activity
  • PositionsCombos — combo positions

Gamma Addition (1)

  • TeamByID — single team lookup

Fix

  • Order payload wire format: salt and timestamp now 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

Choose a tag to compare

@dongowu dongowu released this 10 May 01:04

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)
  • Expiration kept 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

Choose a tag to compare

@dongowu dongowu released this 17 Apr 08:54
f71dbed

What's Changed

  • fix: use string for data/Position.EventID by @itsLeonB in #43

New Contributors

Full Changelog: v1.1.1...v1.1.2

v1.1.1

Choose a tag to compare

@dongowu dongowu released this 14 Apr 03:22
a6c8205

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

Full Changelog: v1.1.0...v1.1.1

v1.1.0

Choose a tag to compare

@dongowu dongowu released this 18 Mar 02:10

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

Choose a tag to compare

@dongowu dongowu released this 11 Mar 06:26
f3151d7

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

Choose a tag to compare

@dongowu dongowu released this 03 Mar 09:30

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

Choose a tag to compare

@dongowu dongowu released this 26 Feb 18:19

Full Changelog: v1.0.7...v1.0.8

v1.0.7

Choose a tag to compare

@dongowu dongowu released this 20 Feb 12:24
00bbdd7

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