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 358 forks source link

Fix order sequence error due to delays #49

Closed nkaz001 closed 10 months ago

nkaz001 commented 11 months ago

Fix #48 To prevent the order sequence from being out of order due to latency, this fix enforces that timestamp should be greater than the timestamp of the last queued order.