Bitcoin Forum
September 22, 2025, 09:11:35 AM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Trading Discussion / Open-Sourcing High Frequency Trading and Market Making Backtesting Tool on: August 15, 2025, 01:47:51 PM
https://github.com/nkaz001/hftbacktest

I'd like to introduce a backtesting tool that focuses on comprehensive tick-by-tick backtesting, incorporating latencies, order queue positions, and complete order book reconstruction.
This framework is designed for developing high-frequency trading and market-making strategies. It focuses on accounting for both feed and order latencies, as well as the order queue position for order fill simulation. The framework aims to provide more accurate market replay-based backtesting, based on full order book and trade tick feed data.

There has been a ton of updates so far.

Key Features:
- Complete tick-by-tick simulation with a customizable time interval or based on the feed and order receipt.
- Full order book reconstruction based on L2 Market-By-Price and L3 Market-By-Order (WIP) feeds.
- Backtest accounting for both feed and order latency, using provided models or your own custom model.
- Order fill simulation that takes into account the order queue position, using provided models or your own custom model.
- Backtesting of multi-asset and multi-exchange models
- Deployment of a live trading bot using the same algorithm code: currently for Binance Futures and Bybit.

Key Tutorials:
- High-Frequency Grid Trading: https://hftbacktest.readthedocs.io/en/latest/tutorials/High-Frequency%20Grid%20Trading%20-%20Comparison%20Across%20Other%20Exchanges.html]]https://hftbacktest.readthedocs.io/en/latest/tutorials/High-Frequency%20Grid%20Trading%20-%20Comparison%20Across%20Other%20Exchanges.html
- Market Making with Alpha - Order Book Imbalance: https://hftbacktest.readthedocs.io/en/latest/tutorials/Market%20Making%20with%20Alpha%20-%20Order%20Book%20Imbalance.html
- Market Making with Alpha - APT: https://hftbacktest.readthedocs.io/en/latest/tutorials/Market%20Making%20with%20Alpha%20-%20APT.html
- Accelerated Backtesting: https://hftbacktest.readthedocs.io/en/latest/tutorials/Accelerated%20Backtesting.html

Full documentation is here: https://hftbacktest.readthedocs.io/en/latest/index.html
2  Economy / Trading Discussion / HFT and Market Making Backtesting Tool and Examples on: November 11, 2023, 01:46:45 PM
https://www.github.com/nkaz001/hftbacktest

I know that numerous backtesting tools exist. But most of them do not offer comprehensive tick-by-tick backtesting, taking latencies and order queue positions into account.
Consequently, I developed a new backtesting tool that concentrates on thorough tick-by-tick backtesting while incorporating latencies, order queue positions, and complete order book reconstruction.

Key features:
- Working in Numba JIT function.
- Complete tick-by-tick simulation with a variable time interval.
- Full order book reconstruction based on L2 feeds(Market-By-Price).
- Backtest accounting for both feed and order latency, using provided models or your own custom model.
- Order fill simulation that takes into account the order queue position, using provided models or your own custom model.

Full document: https://hftbacktest.readthedocs.io/en/latest/

Example: https://github.com/nkaz001/hftbacktest/tree/master/examples

Additional features are planned for implementation, including multi-asset backtesting and Level 3 order book functionality.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!