Skip to main content
Pro Feature — This requires a Pro or Ultra subscription. Get started at horizon.mathematicalcompany.com
Scan for parity violations where the YES and NO contracts on the same market sum to less than $1.00, creating risk-free profit opportunities.

Full Code

How It Works

  1. PolymarketBook streams live bid/ask for both YES and NO sides
  2. parity_arb_scanner() checks if best_ask_yes + best_ask_no < 1.00
  3. When a violation is found, it buys both sides to lock in the difference
  4. auto_execute=True submits the orders immediately; set to False for alerts only

One-Shot Sweep

For a quick check without a live loop, use parity_arb_sweep():

Run It

Dual Scanner

Combine parity scanning with cross-exchange arb for maximum coverage:
See Parity Arbitrage for the full method reference.