Crates.io | hftbacktest |
lib.rs | hftbacktest |
version | 0.5.0 |
source | src |
created_at | 2024-05-10 13:17:15.611396 |
updated_at | 2024-11-24 12:49:19.390694 |
description | A high-frequency trading and market-making backtesting tool accounts for limit orders, queue positions, and latencies, utilizing full tick data for trades and order books. |
homepage | |
repository | https://github.com/nkaz001/hftbacktest/ |
max_upload_size | |
id | 1236003 |
size | 6,028,926 |
This project is currently in its initial development stages, meaning that breaking changes may occur without prior notice. The live bot feature has not undergone comprehensive testing yet; therefore, it must be used at your own risk.
This Rust framework is designed for developing and running 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. You can also run the live bot using the same algo code.
Installation from cargo repository
cargo add hftbacktest
Installation of the up-to-date development version from the sources
hftbacktest = { git = "https://github.com/nkaz001/hftbacktest.git" }
The Rust implementation uses a different data format compared to the Python implementation. Please see the Rust version part of Data Preparation tutorial.
high-frequency gridtrading: The complete process of backtesting Binance Futures using a high-frequency grid trading strategy implemented in Rust.
Please see examples.
For general information, please see document here.
For the Rust implementation, please see document here.
Please see the roadmap.
Thank you for considering contributing to hftbacktest! Welcome any and all help to improve the project. If you have an idea for an enhancement or a bug fix, please open an issue or discussion on GitHub to discuss it.
The following items are examples of contributions you can make to this project:
Please see the roadmap.