A high-frequency trading and market-making backtesting and trading bot 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
I got the following error while converting Tardis data:
In [18]:
Reading binance-futures_incremental_book_L2_YFIUSDT_20230523.csv.gz
could not parse `56.7` as dtype `i64` at column 'price' (column number 7)
The current offset in the file is 134208 bytes.
You might want to try:
- increasing `infer_schema_length` (e.g. `infer_schema_length=10000`),
- specifying correct dtype with the `dtypes` argument
- setting `ignore_errors` to `True`,
- adding `56.7` to the `null_values` list.
Original error: ```remaining bytes non-empty
I got the following error while converting Tardis data:
I defined schemas in https://github.com/nkaz001/hftbacktest/blob/415f81b3c910572ce8de0934b24e73a52daf9884/py-hftbacktest/hftbacktest/data/utils/tardis.py#L85-L87 to work around the issue:
Maybe there is a more elegant way to solve the problem.