Prediction markets

Trade prediction markets with NautilusTrader

Backtest, simulate, and go live on prediction markets on a Rust-native engine with an optional Python API. Trade yes/no outcomes as native BinaryOption instruments on Polymarket, OKX event contracts, and Hyperliquid HIP-4, with Kalshi on the roadmap.

Backtest, sandbox, live

BinaryOption instruments

Polymarket, OKX, Hyperliquid

Written in Rust 🦀

Prediction markets let traders take positions on the outcome of real-world events, from elections and macro data to sports and crypto. Each market is a binary, yes-or-no proposition: a share pays a fixed amount if the outcome resolves in its favor and nothing otherwise, so the price trades between zero and one as a live probability.

NautilusTrader treats these markets as first-class instruments. Yes/no outcomes are modeled as BinaryOption instruments, matched on venue order books, and traded through the same event-driven engine used for equities, futures, and crypto. The v2 engine is Rust-native and can be built on directly in Rust or through the Python API, so the same strategy runs across backtesting, sandbox, and live execution.

Yes/no markets are live across several venues today: Polymarket's on-chain prediction market, handled by a Rust-native adapter, alongside OKX event contracts and Hyperliquid's HIP-4 binary outcome markets, with a Kalshi adapter planned. Each maps to the same BinaryOptioninstrument, so a strategy written against one venue's markets carries over to the next.

One strategy, from backtest to live

Research a strategy on historical data, validate it against a live feed in the sandbox, then deploy it to production. The same strategy runs in every stage; only the surrounding environment changes.

Backtest

Historical replay

Replay historical prediction-market data through the engine at full speed, with nanosecond timestamps and deterministic, reproducible results.

Event-driven simulation with realistic fills

Venue fee model for research-to-live parity

Reproducible runs from the same inputs

BacktestNode

Sandbox

Live data, simulated fills

Run the strategy against real-time market data through a simulated matching engine. Orders match against the live book without anything reaching the venue.

Live feeds, no real orders

No venue credentials required

Proves out live behavior before capital

SandboxExecutionClient

Live

Production execution

Point the same strategy at the live execution client to trade real orders, with full order, fill, and position reconciliation.

Signed orders on the venue

Order and position reconciliation

Same code as backtest and sandbox

TradingNode

Native BinaryOption instruments

Prediction-market outcomes map cleanly onto a binary option: a fixed payout on one side of a yes-or-no question. NautilusTrader models them directly.

Polymarket outcome tokens, OKX event contracts, and Hyperliquid HIP-4 markets all load as the same BinaryOptioninstrument, each carrying its venue's price and size increments. Because the type is shared, a strategy that trades one venue's yes/no markets runs against another's without changes, and orders, fills, and positions behave consistently across backtest, sandbox, and live. Fixed-payout resolution is handled in the core: when a market settles, the winning side closes at one and the losing side at zero.

Markets you can trade

Yes/no markets on Polymarket span every category the venue lists, discovered and loaded at runtime.

Market categories · Thousands of live markets

Politics

Elections, policy

Crypto

Prices, events

Sports

Games, futures

Finance

Rates, markets

Culture

Awards, media

Weather

Climate, temps

Tech

AI, launches

Mentions

Public figures

+ More

Each market is a yes-or-no question, loaded as a binary option with an instrument ID of the form <condition_id>-<token_id>.POLYMARKET.

These categories are a representative sample. Polymarket lists thousands of individual yes/no markets across politics, crypto, sports, finance, and more, and new ones appear throughout the day; the adapter discovers them and auto-loads each one as a BinaryOption on demand.

Get started

Build your prediction-market strategy

Start with the open-source engine, backtest on historical data, and go live on Polymarket, OKX, or Hyperliquid, building in Rust or the optional Python API.

footer-logo

© 2026 Nautech Systems Pty Ltd. All rights reserved.

NautilusTraderâ„¢ is a product of Nautech Systems Pty Ltd (ABN 88 609 589 237). Nautech Systems provides algorithmic trading software only. We do not operate as a broker, dealer, or exchange, nor offer financial advisory services. Users are solely responsible for compliance with applicable laws and regulations. Subject to non-excludable consumer guarantees, we make no warranties and accept no liability for trading losses or regulatory violations arising from use of the software. Read full disclaimer.

We use essential cookies and, with your consent, optional analytics cookies, as described in our Privacy Policy. Manage your Cookie Preferences.