Codex
97a770da65
malkhut: online EWMA self-calibrating slippage model
Flight7 model underestimates by 80% in CWM dynamic book:
raw predicted: 0.034 bps, actual: 0.180 bps
Constant error across 22K episodes — no feedback loop.
Root cause: Flight7 calibrated on real BingX taker fills, but CWM's
synthetic dynamic book has different fill characteristics.
Fix: SlippageSelfCalibrator with EWMA feedback loop.
After each fill: error = actual - predicted (clipped to +/-20 bps)
EWMA smooths per-symbol errors (alpha=0.2)
Next prediction = raw_model + EWMA_correction
Bounded output: 0-50 bps absolute
Convergence (300 eps across 8 assets):
ETH: 9% error (from 80%)
SOL: 3.5%
DOGE: 6.7%
LINK: 5.7%
ADA: 9.7%
BTC: 48.6% (low fill count, converging)
AVAX: 28.6% (low fill count)
UNI: 52.5% (low fill count, early outlier)
Truthfulness guarantees:
- Correction is observable (CALIBRATOR.correction(symbol))
- Resets between runs (no hidden state)
- Only uses observed fills, no assumptions
- Error clipping prevents outlier domination
- Absolute bounds prevent runaway
2026-07-20 15:17:16 +02:00
..
2026-07-11 21:57:04 +02:00
2026-07-11 10:36:30 +02:00
2026-07-20 15:17:16 +02:00
2026-07-14 02:33:31 +02:00
2026-07-11 10:31:31 +02:00
2026-07-11 10:31:31 +02:00
2026-07-18 17:44:20 +02:00
2026-07-15 00:11:57 +02:00
2026-07-12 20:52:56 +02:00
2026-07-18 17:44:20 +02:00
2026-07-20 15:17:16 +02:00
2026-07-18 15:08:57 +02:00
2026-07-11 10:21:27 +02:00
2026-07-14 14:46:44 +02:00
2026-07-11 10:23:44 +02:00
2026-07-14 17:39:24 +02:00
2026-07-11 10:39:03 +02:00
2026-07-11 10:39:03 +02:00
2026-07-11 10:26:01 +02:00
2026-07-11 10:26:01 +02:00
2026-07-14 23:07:38 +02:00
2026-07-11 10:21:27 +02:00
2026-07-11 10:21:27 +02:00
2026-07-11 10:41:31 +02:00
2026-07-15 00:48:48 +02:00
2026-07-15 19:32:46 +02:00
2026-07-19 05:47:34 +02:00
2026-07-19 19:06:10 +02:00
2026-07-11 10:41:31 +02:00
2026-07-18 17:44:20 +02:00