
A C#/.NET SDK providing REST and WebSocket client implementations for the Polymarket prediction market API.
Polymarket.Net is an unofficial C#/.NET client library maintained by JKorf that enables developers to integrate Polymarket prediction market functionality into .NET applications. The SDK provides two primary client classes: PolymarketRestClient for synchronous REST API calls and PolymarketSocketClient for real-time WebSocket subscriptions.
The REST client exposes two main API surfaces: the Gamma API for market discovery, metadata retrieval, and event/market queries; and the CLOB API for order book data, trading operations, and portfolio management. The WebSocket client enables real-time subscriptions to order book updates, price changes, and trade notifications.
Key capabilities include fetching active and closed markets, retrieving order book depth for specific outcome tokens, subscribing to live market updates, and programmatically interacting with Polymarket's Central Limit Order Book (CLOB) trading system. All trades are denominated in USDC on the Polygon network, though the SDK itself handles only the API layer—not wallet management or transaction signing.
The library is distributed as a NuGet package, targets .NET Standard 2.0 (ensuring compatibility with .NET Framework 4.6.1+ and .NET Core 2.0+), and is released under the MIT license. It is particularly valuable for developers building trading bots, analytics dashboards, arbitrage tools, or automated monitoring systems that need reliable, typed access to Polymarket data.
As an independent community-maintained project, Polymarket.Net is not officially affiliated with Polymarket CLOB Inc., meaning API compatibility depends on the maintainer keeping pace with upstream changes.
REST client for market discovery, event metadata, and resolution data queries.
REST client for order book data, trading operations, and account management.
Live subscription feeds for order book updates, trades, and price changes.
C# class models for all API responses with intellisense support.
Installable via NuGet package manager with .NET Standard 2.0 support.
Permissive open-source license allowing commercial and derivative use.
Separate API clients for Gamma (metadata) and CLOB (trading) services.
You want to automate trading strategies on Polymarket—such as market-making, arbitrage, or momentum-based strategies—requiring programmatic order submission and real-time price monitoring.
You need to display real-time Polymarket data—prices, volumes, open interest—on a web or desktop dashboard for traders or researchers to monitor.
You want to automatically collect data on how markets resolve—tracking prediction accuracy, market efficiency, and historical outcomes for research purposes.
Official JavaScript/TypeScript SDK for wallet interactions; different language ecosystem.
Raw HTTP calls without client library abstraction; more flexible but higher effort.
Community Python wrappers for the same APIs; better for data science workflows.
Different prediction platform; similar forecasting use case but non-blockchain.
Alternative prediction market with different market mechanics and API.
| Dimension | Polymarket.Net | Polymarket Official JavaScript SDK | Notes |
|---|---|---|---|
| Language | C# / .NET | JavaScript / TypeScript | Different target developer ecosystems1,3 |
| Maintainer | Community (JKorf) | Polymarket official | Official SDK has faster update cadence1,3 |
| Scope | REST + WebSocket data APIs | Wallet + on-chain interactions | Different focus areas1,3 |
| Auth Support | Limited/unknown | Full wallet auth flows | Official SDK handles signing1,3 |
| License | MIT | MIT | Both permissive1,3 |
Choose Polymarket.Net for C#/.NET backends, trading bots, or Windows desktop apps. Choose the official JavaScript SDK for web frontends, wallet-integrated dApps, or when you need authenticated trading with built-in signing logic.
| Dimension | Polymarket.Net | Direct Polymarket REST API | Notes |
|---|---|---|---|
| Setup Effort | Low (NuGet install) | Medium (HTTP client config) | SDK saves boilerplate1,2 |
| Type Safety | Strong (C# models) | None (raw JSON) | SDK prevents parsing errors1 |
| Flexibility | Constrained to SDK methods | Full API access | Direct API for edge cases1,2 |
| Update Cadence | Dependent on maintainer | Immediate with API changes | SDK may lag upstream1 |
| WebSocket Support | Built-in client class | Manual implementation | SDK simplifies streaming1,2 |
Use Polymarket.Net for rapid development and when you benefit from typed models and built-in WebSocket handling. Drop down to direct REST calls when you need bleeding-edge features not yet in the SDK, or when minimizing third-party dependencies is critical.
Most affects: Production trading systems requiring 100% API uptime and feature completeness.
Most affects: Developers building automated trading bots requiring order submission.
Most affects: Teams without C# expertise or capacity to maintain forked dependencies.

SDK wraps Polymarket's public REST and WebSocket APIs for market data and trading.
Official JavaScript SDK serves similar purpose for different language ecosystem.
Polymarket runs on Polygon; SDK transactions ultimately settle on this chain.
Independent developer maintaining the Polymarket.Net library.
This dossier for Polymarket.Net has some gaps. If you have knowledge about any of the following areas, consider contributing.
GitHub repo does not display creation date in accessible content
README focuses on public data examples

Institutional-grade liquidity network

Purpose-built L1 for trading

High-performance on-chain orderbook

Unified API for prediction markets, CCXT-style