Skip to main content

Crate nautilus_polymarket

Crate nautilus_polymarket 

Source
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.

  • python: Enables Python bindings from PyO3.
  • extension-module: Builds as a Python extension module.

High-precision mode (128-bit value types) is enabled by default.

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.
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 and Gamma APIs.
providers
Instrument provider for the Polymarket adapter.
python
Python bindings from pyo3.
signing
Polymarket EIP-712 (L1) signing.
websocket
WebSocket client implementation for the Polymarket CLOB API.