Skip to main content
Pro Feature. Requires a Pro or Ultra subscription. Get started at api.mathematicalcompany.com

Parity Arbitrage

When the YES ask + NO ask on the same exchange sums to less than $1.00, buying both sides locks in guaranteed profit. This is the simplest and lowest-risk arbitrage method.

How It Works

In a binary prediction market, one outcome must resolve to $1.00. If you can buy YES at $0.45 and NO at $0.48, your total cost is $0.93, guaranteeing $0.07 profit (minus fees).

Engine Methods

scan_parity_arb

Returns a ParityArbitrageOpportunity or None.

execute_parity_arb

Submits two FOK buy orders (YES + NO). If the second leg fails, the first is auto-canceled.

Pipeline: parity_arb_scanner

Stores ParityArbitrageOpportunity in ctx.params["last_parity_arb"].

One-Shot: parity_arb_sweep

Returns ArbResult or None.

Rust Type: ParityArbitrageOpportunity