This release fixes issues for SREs watching stability and regressions.
✓ No known CVEs patched in this version
Topics
+11 more
Summary
AI summaryFixed market‑resolver filter, price quality checks, buy outcome routing, and ID truncation bugs.
Full changelog
1.6.3 — Market Data Layer Bug Fixes
End-to-end testing of the README usage examples surfaced a cluster of bugs in the market data layer. This patch release fixes six of them — they share a single root cause: silent failures in the Polymarket API integration (ignored query params, wrong array index assumptions) that cascaded through buy, compare, and search flows.
🐛 Bug Fixes
market-resolver— Gamma/markets?condition_id=silently ignored the filter and returned the first DB row, so everybuy/watch/comparecall resolved to the wrong market. Now uses CLOB/markets/{conditionId}, which filters correctly and returns both YES and NO tokens with prices.market-filter+price-service.getMarketPrice— Polymarket CLOB/bookreturns bids ascending and asks descending, sobids[0]was the worst bid andasks[0]the worst ask. Every liquid market was failing the quality check with a phantom ~98% spread. Fixed withMath.max/Math.min.price-service.getMarketPriceByCondition— Same Gamma → CLOB migration as the resolver.buytool — Theoutcomeparameter was validated by Zod but never actually used; the tool always bought the YES token regardless ofNOinput. Now correctly routed throughpickTokenId/pickPricehelpers.search-markets— Output truncatedcondition_idto 12 characters +..., so the returned IDs could not be fed back intobuy/compare. Now shows the full ID in backticks.trending-markets— Usedvolume24hrfield even for 7d/30d requests, and sent category astag=<slug>which Gamma also silently ignores. Now resolves slugs to numerictag_idvia/tags/slug/<slug>and selects the period-specific volume field.
✅ Verification
npm test— 207/207 pass across 40 files- Tests for
market-resolverandprice-servicerewritten against the new CLOB response shape - Real API smoke tests:
buy YES,buy NO,compare(distinct metrics),search(full IDs),trending 7d crypto(category filter)
📦 Install
npm install [email protected]
# or
npx polymarket-agent-mcp
Full diff: https://github.com/demwick/polymarket-agent-mcp/compare/v1.6.2...v1.6.3
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About demwick/polymarket-agent-mcp
49-tool Polymarket prediction market suite for AI agents. Direct trading, smart money flow detection, copy trading with auto-monitor, backtesting, arbitrage scanning, portfolio optimization, and real-time WebSocket price streaming. Preview mode for simulation, live mode for real orders.
Related context
Beta — feedback welcome: [email protected]