Backtesting that accounts for feed latency, order latency, and queue position
AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.
Why it matters
Market-making strategies backtested with HftBacktest should produce live results that actually match simulations, because it models queue position and latency instead of assuming instant fills.
HftBacktest is a free, open-source tool for testing high-frequency trading strategies before risking real money. Most backtesting software pretends your orders fill instantly, which makes results look far better than reality. This tool instead simulates how fast market data and your orders travel, and where you stand in the exchange's waiting line. It matters to people building fast, automated trading strategies that depend on tiny profit margins.
Most backtesting tools overstate trading profits by assuming instant order fills, so strategies that looked profitable in testing lose money live. HftBacktest, an open-source project by developer nkaz001, models data delays, order delays, and queue position to shrink that gap. It supports live trading on Binance Futures and Bybit. Relevant to firms running market-making strategies; irrelevant to slower, daily-bar trading.
HftBacktest rebuilds the full order book from Level-2 Market-By-Price and Level-3 Market-By-Order data and replays tick events through a Numba JIT-compiled engine. Feed, order latency, and queue position models are pluggable. Python (3.11+, pip install) and Rust share the same algorithmic core; Rust also supports live trading on Binance Futures and Bybit. It supports multi-asset, multi-exchange simulation; the article gives no benchmark numbers.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Intel One Mono: a monospaced font designed with low-vision developers
Developers with low vision or eye fatigue can read code more clearly, reducing errors and improving productivity.