Skip to main content
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

Add polymarket-client to your Cargo.toml:
[dependencies]
polymarket-client = "0.1"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
1

Add the crate

Add polymarket-client to Cargo.toml with the features you need (see Feature Flags).
2

Browse markets

Use PublicClient to list open markets and fetch order books — no credentials required.
3

Authenticate for trading

Build a SecureClient with your Polygon wallet private key to place and manage orders.
4

Stream real-time data

Call subscribe() on either client to open a websocket channel and receive live market events.