Hftbacktest Versions Save

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.

v1.8.1

2 weeks ago

Fixed Fixed data conversion errors in the Rust experimental implementation. Changed ceil to floor to adopt a more conservative approach for calculating executed quantity in the PartialFillExchange model.

Added Implemented timestamp unit conversion in data utilities. Enabled support for regular stream conversion for Binance Futures feed data. (Previously, only combined stream was supported.)

v1.8.0

1 month ago

Fixed Fixed cancellable condition (PARTIALLY_FILLED).

Added Simplified data validation logic in data utils. Added a new format conversion to support Rust implementation.

v1.7.2

3 months ago

Fixed Fixed a issue where Tardis data converter cannot handle unordered local_timestamp. Fixed a potential problem where IntpOrderLatency returns an incorrect value.

Added Added an option to retrieve equity without DateTime conversion. Updated difforderbooksnapshot to provide detailed update flags.

v1.7.1

5 months ago

Fixed Fixed a problem where a snapshot exists only for one side. #56

v1.7.0

5 months ago

Fixed Removed the redundant loop used to find the frontmost timestamp.

Added Added PowerProbQueueModel, ProbQueueModel2, LogProbQueueModel2, ProbQueueModel3 and PowerProbQueueModel3 to support different probability profiles. #42 Added a utility to convert continuous order book snapshot data into market-by-price data that can be processed by hftbacktest.

v1.6.6

6 months ago

Fixed #44 Fix bugs regarding PartialFillExchange. #48 Fix order sequence error due to delays.

v1.6.5

8 months ago

Fixed

Fix an issue where a proper start timestamp cannot be found. Fix the mingled timestamp issue of Binance Historical Market Data converter. Fix the issue where the response latency is not correctly calculated due to an incorrect if statement in IntpOrderLatency.

Added An optional header argument has been added to Binance Historical Market Data converter in order to determine whether the first row is a header or not.

v1.6.4

8 months ago

Unresolved Tardis data processing problem that causes hang in backtesting is fixed. It needs regenerating normalized data to resolve the problem.

v1.6.3

9 months ago

Tardis data processing problem that causes hang in backtesting is fixed. It needs regenerating normalized data to resolve the problem. Order rejection feature by exchange errors(e.g 5xx error in crypto exchanges) is added.

v1.6.2

10 months ago

add args for snapshot buffer. lot_size property is added to HftBacktest.