Skip to main content
Ultra Feature. Requires an Ultra subscription. Get started at api.mathematicalcompany.com
Use the Oracle module to forecast market outcomes with a 6-signal decomposition, scan for mispriced markets, and inject edge signals into a live trading pipeline.

Full Code

Pipeline Mode

Inject oracle edge forecasts into a live quoting strategy:

How It Works

  1. forecast_market() decomposes the forecast into 6 signals:
  • Smart money flow, microstructure, momentum, volume profile, holder concentration, and temporal patterns
  • Each signal is weighted per OracleConfig.signal_weights
  • The ensemble probability is the weighted sum, clamped to [0.01, 0.99]
  1. scan_edges() applies forecast_market() across multiple markets and filters by minimum edge
  2. oracle() pipeline function re-forecasts every N cycles and injects ctx.params["oracle_forecast"] and ctx.params["oracle_edge_bps"]
  3. oracle_report() forecasts multiple markets, computes model calibration via log-loss, and surfaces top edge opportunities

Run It

See Oracle for the full reference.