Expand description
NautilusTrader adapter for the Polymarket prediction market.
The nautilus-polymarket crate provides integration with the Polymarket CLOB API for
trading binary outcome contracts on the Polymarket prediction market.
§NautilusTrader
NautilusTrader is an open-source, production-grade, Rust-native engine for multi-asset, multi-venue trading systems.
The system spans research, deterministic simulation, and live execution within a single event-driven architecture, providing research-to-live semantic parity.
§Feature Flags
This crate provides feature flags to control source code inclusion during compilation, depending on the intended use case, i.e. whether to provide Python bindings for the nautilus_trader Python package, or as part of a Rust only build.
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.
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.