This is a Python library that helps options traders test their strategies more honestly. Most backtesting tools assume you'll always fill at the perfect middle price, which is unrealistic. This simulator models what actually happens when you place limit orders: you wait until someone else crosses your price, stale quotes don't trick you into false fills, and exits don't magically walk down to better prices. It integrates with popular backtesting frameworks and gives you realistic results instead of inflated ones. The project is well-documented, includes comprehensive tests, and comes from a legitimate trading firm that open-sourced this tool after discovering their own strategy returns dropped dramatically when they modeled execution honestly.
How It Works
Your options trading strategy shows amazing returns, but something feels off about those perfect fills.
Standard backtesting tools assume you'll always fill at the exact middle price, which never happens in real markets.
A tool that models what really happens when you place a limit order: waiting for someone to cross your price, handling stale quotes, and realistic exit strategies.
Drop the simulator into your existing backtesting framework and it automatically replaces your naive fill logic.
If your edge survives honest fill modeling, it's a real signal worth trading.
If your returns collapse with realistic fills, you just saved yourself from a bad strategy.
Now you know whether your strategy has a genuine edge or was just an artifact of unrealistic testing.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.