Skip to main content
OpenPX is an open-source, CCXT-style SDK for prediction markets. Trade Kalshi and Polymarket through a single Exchange interface, in Rust, Python, or TypeScript.

Quickstart

Install the SDK and fetch your first market.

API Methods

Markets, orders, balances, and history.

WebSockets

Real-time orderbooks, trades, and fills.

SDKs

Rust, Python, and TypeScript bindings.

Why OpenPX

  • One interface, many venues. The same calls return the same shapes across every supported exchange.
  • Speed first. Written in Rust with simd-json decoding, tuned HTTP defaults, and zero-allocation hot paths.
  • Bring your own credentials. OpenPX never custodies keys — you supply them at construction.

Supported exchanges

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