Pro Feature — This requires a Pro or Ultra subscription. Get started at horizon.mathematicalcompany.com
Full Code
How It Works
PolymarketBookstreams live bid/ask for both YES and NO sidesparity_arb_scanner()checks ifbest_ask_yes + best_ask_no < 1.00- When a violation is found, it buys both sides to lock in the difference
auto_execute=Truesubmits the orders immediately; set toFalsefor alerts only
One-Shot Sweep
For a quick check without a live loop, useparity_arb_sweep():