Shown: minute lows of the 465 Binance perpetuals, 20:40–22:00 UTC on 10 Oct 2025, with BTC’s path traced · built with ohlcv 1m
A price-only backtest quietly assumes you can trade at the mid-price for free. Real fills pay the half-spread, move the book, and miss when liquidity thins out. This notebook builds a microstructure transaction-cost model — half-spread plus market impact — from Aperiodic's L1 price, impact, and slippage metrics, checks it against measured slippage, and shows how different cost assumptions reshape the same simple momentum backtest.
01
02
03
Metrics in this use case
Stop backtesting fantasy fills. Price in slippage, impact and funding with point-in-time metrics.
Shown: minute lows of the 465 Binance perpetuals, 20:40–22:00 UTC on 10 Oct 2025, with BTC’s path traced · built with ohlcv 1m