Poly SDK

Poly SDK

Poly SDK is a unified TypeScript SDK for Polymarket that helps developers build polymarket api tools, trading systems, analytics dashboards, and automation workflows.

Active⚙️ Polymarket SDKs & APIs
90
Upvotes
0
Stars
2.3K
Views

About

Poly SDK (@catalyst-team/poly-sdk) is a developer-focused, open-source TypeScript SDK designed to simplify building applications on top of Polymarket. It consolidates multiple Polymarket interfaces into a single, typed codebase so teams can build polymarket api tools, automated trading systems, dashboards, analytics pipelines, and research utilities without stitching together separate clients and inconsistent data formats. In practice, Poly SDK functions as a “backend toolkit” for the broader ecosystem of polymarket tools, supporting both read-only data access and fully authenticated trading workflows.

A core advantage of Poly SDK is its unified service architecture. The SDK provides high-level services for trading, market data, realtime streaming, wallet analytics, smart-money tracking, arbitrage workflows, and on-chain operations. Developers can start with a single entry point and progressively adopt deeper features depending on their use case, ranging from simple market lookups to real-time orderbook analysis and automated execution strategies.

For trading, the SDK supports standard order workflows used on Polymarket’s CLOB, including market and limit orders, open order queries, and order cancellation. It includes commonly required order types (GTC, GTD, FOK, FAK) and enforces practical constraints such as minimum order requirements before requests are sent. This makes it useful for building tools for Polymarket trading where reliability and consistent validations matter.

For analytics, Poly SDK exposes market data features such as real-time prices, orderbooks, historical trades, and derived chart data. It also includes utilities that address Polymarket-specific mechanics, including the mirror property of YES/NO orderbooks, which can cause double counting if handled incorrectly. Processed orderbook outputs and spread calculations help developers create accurate polymarket analytics tools and polymarket dashboards that present actionable information rather than raw, noisy book data.

Realtime support is provided through a WebSocket-based service with event-driven callbacks for price updates, orderbook updates, and last-trade events. The realtime layer includes connection management features such as auto-reconnect and watchdog behavior, which is important for long-running bots, dashboards, and monitoring systems.

Beyond data and trading, Poly SDK includes on-chain operations needed for Polymarket’s token workflows, such as split/merge/redeem for conditional tokens, approvals, balance checks, and optional swap support to handle required token formats (for example, ensuring the correct stablecoin variant is available for CTF operations). This makes the SDK relevant for builder teams that need a single library to manage both off-chain trading APIs and on-chain settlement mechanics.

Finally, Poly SDK includes advanced strategy modules such as smart-money tracking, automated copy trading, arbitrage scanning, and a specialized “dip arbitrage” service for short-duration crypto markets. These are packaged as reusable services and scripts, making the project useful not only as a library, but also as a reference implementation for prediction-market automation. For developers building production-grade prediction market tools, Poly SDK provides a structured, type-safe foundation that reduces integration overhead and helps keep Polymarket integrations maintainable as APIs evolve.

Key Features

Unified TypeScript SDK covering Polymarket trading, data, and on-chain workflows
Type-safe API surface with comprehensive TypeScript types
Read-only usage without authentication for market data
Trading support for limit and market orders
Order types supported: GTC, GTD, FOK, FAK
Order management: create, cancel, cancel-all, query open orders
Market data: prices, orderbooks, historical trades
K-lines and OHLCV candle generation from trade data
Dual outcome analytics (YES/NO) with spread analysis
Processed orderbook output with derived metrics
Arbitrage detection helpers (effective prices, mirror-book logic)
ArbitrageService for scanning and optionally executing opportunities
DipArbService for 15-minute crypto UP/DOWN market strategies
SmartMoneyService for smart-wallet lists, signals, and monitoring
Auto copy-trading subscription with filters and dry-run mode
WalletService for top traders, wallet profiles, smart scores, and PnL metrics
Sell-activity detection and group sell ratio tracking
RealtimeServiceV2 WebSocket streaming for prices, books, and trades
Auto-reconnect and watchdog features for resilient realtime connections
OnchainService for CTF operations (split, merge, redeem)
On-chain approvals and readiness checks for CTF trading
DEX swap support (e.g., QuickSwap V3) for required token conversions
Low-level clients for direct access to Data API, Gamma API, and Subgraph data
Built-in rate limiting per endpoint
TTL caching with pluggable adapters
Structured error handling with retry logic
Subgraph client support for on-chain data (via indexing providers such as Goldsky)
Script and example library for common workflows (trading, realtime, smart money, arbitrage)
MIT license (open-source)

Pricing

Free and open source

Terms & Conditions

MIT License - Free to use, modify, and distribute.

Reviews (2)

Please log in to write a review

Log In
4.5
2 reviews
5
1
4
1
3
0
2
0
1
0
SC
Sarah Chen
about 1 month ago

Great but room for improvement

Really solid product. Would love to see more customization options in the future.

Verified Purchase
AT
Alex Thompson
about 1 month ago

Excellent tool!

This has completely changed how I trade on Polymarket. Highly recommended!

Verified Purchase

Q&A (0)

No questions yet. Be the first to ask!