nkaz001 / hftbacktest

A high-frequency trading and market-making backtesting tool in Python and Rust, which accounts for limit orders, queue positions, and latencies, utilizing full tick data for trades and order books, with real-world crypto market-making examples for Binance Futures
MIT License
1.78k stars 357 forks source link

refactor(rust): remove the `Q` generic type dependency in `Order`. #83

Closed nkaz001 closed 3 months ago

nkaz001 commented 3 months ago

refactor(rust): remove the Q generic type dependency in Order, which is needed for additional queue estimation data, because it complicates backtesting across multiple exchanges that use different models. Instead, use `Box`` to store the additional data, eliminating the type dependency.