Synthetic Index
There is no S&P 500 for prediction markets. Horizon’s index module lets you build one. Combine multiple markets into a weighted index, track rebalancing drift, and detect arbitrage between the index level and its components. All math is in Rust.Overview
Index Construction
hz.compute_index_level() computes a weighted index from component prices.Weighting Methods
Equal, inverse-vol, liquidity, or custom weight schemes.
Rebalancing
hz.rebalance_weights() calculates drift and rebalance actions.Index Arbitrage
hz.index_arb_signal() detects deviations between index and components.