Expand description
NautilusTrader adapter for the Polymarket prediction market.
The nautilus-polymarket crate provides market data and order execution for binary outcome contracts
through the Polymarket CLOB APIs. It includes market discovery, authenticated HTTP and WebSocket
clients, order signing, and execution reconciliation, plus Deposit Wallet position operations
through the Relayer API.
The official Polymarket API reference can be found at https://docs.polymarket.com/.
§NautilusTrader
NautilusTrader is an open-source, production-grade, Rust-native trading engine with a deterministic, event-driven architecture for multi-asset, multi-venue systems.
The system spans research, simulation, and live execution, providing research-to-live semantic parity.
§Feature Flags
Feature flags control code inclusion for Rust builds and Python bindings:
allowances: Enables thepolymarket-set-allowancesbinary.examples: Enables the crate’s example binaries.extension-module: Builds as a Python extension module.high-precision(default): Enables high-precision mode to use 128-bit value types.python: Enables Python bindings from PyO3.
§Integrator Attribution
Orders signed by the adapter carry the fixed NautilusTrader builder code with zero builder fees.
See attribution details.
§Documentation
Modules§
- common
- Common types and utilities for the Polymarket adapter.
- config
- Configuration structures for the Polymarket adapter.
- data
- Live market data client implementation for the Polymarket adapter.
- data_
types - Polymarket-specific custom data types.
- execution
- Live execution client implementation for the Polymarket adapter.
- factories
- Factory functions for creating Polymarket clients and components.
- filters
- Instrument filters for the Polymarket adapter.
- http
- HTTP client implementation for the Polymarket CLOB, Gamma, and Relayer APIs.
- models
- Polymarket simulation models.
- positions
- Deposit Wallet split, merge, and redeem operations for Polymarket positions.
- providers
- Instrument provider for the Polymarket adapter.
- python
- Python bindings from
pyo3. - session
- Owner-operated administration of Deposit Wallet session keys.
- signing
- Polymarket EIP-712 (L1) signing and on-chain approval planning.
- websocket
- WebSocket client implementation for the Polymarket CLOB API.