Skip to main content
Pro Feature. Requires a Pro or Ultra subscription. Latency Arb and Composite Scanner require Ultra. Get started at api.mathematicalcompany.com

Arbitrage Methods

Horizon provides 8 arbitrage methods covering every exploitable inefficiency in prediction markets. Methods are organized in tiers from basic same-exchange parity to expert composite meta-scanning.

Tier Progression

Which Method to Use

Same-exchange mispricing?

Use Parity Arb - guaranteed profit when YES + NO asks sum to less than $1.00.

Price differs across exchanges?

Use Cross-Exchange Arb - buy on the cheap exchange, sell on the expensive one.

Multi-outcome event mispriced?

Use Multi-Outcome Arb - buy or sell all outcomes when they don’t sum to $1.00.

Two markets move together?

Use Spread Convergence (simple) or Stat Arb (rigorous) to trade mean-reversion.

Want to earn spread + hedge?

Use MM Arb - market-make on one exchange, hedge delta on another.

Want speed edge?

Use Latency Arb - front-run slow book updates with fast external feeds.

Run everything at once?

Use Composite Scanner - scores all methods and routes capital to the best.

Quick Start

Architecture

All arbitrage methods share:
  • Rust core for detection (src/parity.rs) - branchless hot-path computation
  • Engine methods for scanning and execution with atomic rollback
  • Python pipeline functions compatible with hz.run()
  • Cooldown timers to prevent over-trading
  • Result storage in ctx.params for downstream inspection
The module is structured as a Python package (horizon.arb) with backward-compatible re-exports:
Arbitrage in live prediction markets involves real financial risk. Paper-test all strategies thoroughly before deploying with real capital. Atomic rollback cannot guarantee cancel success on live exchanges if orders were already filled.