Skip to main content
Ultra Feature. Requires an Ultra subscription. Get started at api.mathematicalcompany.com

Options Overlay

Prediction markets are binary options. They have implied volatility, Greeks, and a term structure. Horizon’s options overlay extracts these from market prices and builds synthetic spread strategies. All math is in Rust.

Overview

Options Chain

hz.build_options_chain() computes IV, delta, gamma, theta, and vega from binary prices.

Vol Surface

hz.vol_surface() maps implied vol across strikes and expiries.

Term Structure

hz.term_structure() extracts the IV term structure.

Spread Strategies

Butterfly, straddle, and calendar spread construction.

Core Functions

hz.build_options_chain

Build a synthetic options chain with Greeks from prediction market prices.
Returns a list of SyntheticOption objects with fields: market_id, price, implied_vol, delta, gamma, theta, vega.

hz.vol_surface

Build a volatility surface across strikes and expiries.

hz.term_structure

Extract the IV term structure for a single strike across different expiries.

Spread Strategies


Pipeline Functions

hz.options_chain

Build and track the options chain each cycle.

hz.delta_hedge_continuous

Continuous delta hedging. Flags when delta drift exceeds a threshold.

hz.vol_surface_monitor

Track the vol surface and detect IV changes.

Examples

Options-Aware Trading


Mathematical Background

For a binary option paying 1 if the event occurs:price = N(d2) where d2 = -sigma * sqrt(T) / 2IV is extracted by inverting this relationship via bisection. Prices near 0.5 have the highest vega (most sensitive to vol changes).
  • Delta: dP/dS, sensitivity to underlying. For binaries, delta peaks at-the-money.
  • Gamma: d2P/dS2, rate of delta change.
  • Theta: dP/dT, time decay. Binaries gain theta as they move away from 0.5.
  • Vega: dP/dsigma, sensitivity to implied vol.