Skip to main content
OpenPX is an open-source, CCXT-style SDK for prediction markets. One Exchange interface — Rust, Python, or TypeScript — talks to every supported venue.

What you get

  • One interface, many venues. Identical method signatures and return shapes across Polymarket and Kalshi.
  • Speed first. Rust core with simd-json decoding, tuned HTTP defaults, zero-allocation hot paths.
  • Bring your own credentials. OpenPX never custodies keys.

Supported exchanges

ExchangeRESTWebSocketNotes
PolymarketYesYesOn-chain CLOB on Polygon
KalshiYesAuth onlyCFTC-regulated US event contracts

Next steps

Quickstart

Fetch your first market in under a minute.

Polymarket setup

Configure Polymarket credentials.

Kalshi setup

Configure Kalshi credentials.

WebSockets

Real-time orderbooks, trades, and fills.