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
| Field | Description |
|---|---|
estimated_slippage_bps | Predicted slippage in basis points |
kyle_lambda | Kyle’s lambda (price impact coefficient) |
effective_spread_bps | Current effective spread |
recommended_strategy | "market", "twap", "iceberg", or "sniper" |
estimated_duration_secs | Recommended execution window |
One-Call Execution
Pipeline Mode
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_pctof remaining quantity - Random delay between refills
SniperAlgo
Waits for optimal entry conditions:- Monitors
effective_spreadandlob_imbalance - Fires when spread < target AND imbalance favours our side
- Patience mechanism progressively relaxes the threshold
StealthConfig
| Parameter | Default | Description |
|---|---|---|
randomize | True | Randomise slice sizes and delays |
min_delay_secs | 0.5 | Minimum delay between iceberg refills |
max_delay_secs | 5.0 | Maximum delay between iceberg refills |
max_visible_pct | 0.10 | Maximum visible fraction (iceberg) |
impact_limit_bps | 50.0 | Abort if estimated impact exceeds this |
patience_secs | 120.0 | Sniper patience window |
adaptive_aggression | True | Enable fill-rate adaptive behaviour |