polymarket-client gives you everything you need to build on Polymarket in Rust: browse live prediction markets, stream real-time order books, place trades, and settle positions on Polygon — all behind a single, ergonomic async API.
Introduction
What the SDK covers and how to add it to your project
Quickstart
List live markets and fetch an order book in minutes
Authentication
Set up your wallet and build a SecureClient for trading
Trading
Place limit orders, cancel them, and settle CTF positions
Websockets
Subscribe to real-time market and user event streams
Hybrid Pattern
Bridge any front-end (including Solana) to Polygon settlement
Install
Addpolymarket-client to your Cargo.toml:
Add the crate
Add
polymarket-client to Cargo.toml with the features you need (see Feature Flags).Browse markets
Use
PublicClient to list open markets and fetch order books — no credentials required.Authenticate for trading
Build a
SecureClient with your Polygon wallet private key to place and manage orders.
