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

Stealth Execution

Institutional-grade execution for prediction markets. Estimate market impact before trading, route across venues, and execute with algorithms that minimise information leakage.

Impact Estimation

Kyle’s lambda + spread + volatility to predict slippage before you trade.

Smart Routing

Greedy cost-minimising allocation across Paper, Polymarket, and Kalshi.

Adaptive TWAP

Fill-rate adaptive time-slicing with spread-widening circuit breaker.

Sniper Mode

Waits for tight spread + favourable imbalance, then fires instantly.

Impact Estimation


One-Call Execution


Pipeline Mode

The pipeline reads ctx.params["stealth_requests"] (a list of request dicts) and drives active algorithms each tick.

Algorithms

AdaptiveTWAP

Splits a parent order into time-slices with fill-rate feedback:
  • Fill rate > 80% → slow down (multiply interval by 1.5)
  • Fill rate < 20% → speed up (multiply interval by 0.75)
  • Spread widens > 2× → pause until it narrows
  • Optional ±20% slice size randomisation

IcebergPlus

Shows a random fraction of the total order:
  • Visible size randomised in [0.5×, 1.5×] of base
  • Capped at max_visible_pct of remaining quantity
  • Random delay between refills

SniperAlgo

Waits for optimal entry conditions:
  • Monitors effective_spread and lob_imbalance
  • Fires when spread < target AND imbalance favours our side
  • Patience mechanism progressively relaxes the threshold

StealthConfig