# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.82" name = "hftbacktest" version = "0.5.0" authors = ["nkaz001 "] build = false autobins = false autoexamples = false autotests = false autobenches = false 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." documentation = "https://docs.rs/hftbacktest/" readme = "README.md" keywords = [ "quantitative", "trading", "backtesting", "cryptocurrency", "hft", ] categories = [ "finance", "mathematics", "science", "algorithms", "simulation", ] license = "MIT" repository = "https://github.com/nkaz001/hftbacktest/" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "hftbacktest" path = "src/lib.rs" [[example]] name = "algo" path = "examples/algo.rs" [[example]] name = "gridtrading_backtest" path = "examples/gridtrading_backtest.rs" [[example]] name = "gridtrading_backtest_args" path = "examples/gridtrading_backtest_args.rs" [[example]] name = "gridtrading_live" path = "examples/gridtrading_live.rs" [[example]] name = "gridtrading_live_bybit" path = "examples/gridtrading_live_bybit.rs" [[example]] name = "live_order_error_handling" path = "examples/live_order_error_handling.rs" [[example]] name = "logging_order_latency" path = "examples/logging_order_latency.rs" [dependencies.anyhow] version = "1.0.79" [dependencies.bincode] version = "2.0.0-rc.3" [dependencies.chrono] version = "0.4.33" optional = true [dependencies.dyn-clone] version = "1.0.17" [dependencies.futures-util] version = "0.3.30" optional = true [dependencies.hftbacktest-derive] version = "0.2.0" optional = true [dependencies.iceoryx2] version = "0.4.1" features = ["logger_tracing"] optional = true [dependencies.nom] version = "7.1.3" optional = true [dependencies.rand] version = "0.8.5" optional = true [dependencies.serde] version = "1.0.215" features = ["derive"] optional = true [dependencies.thiserror] version = "2.0.3" [dependencies.tokio] version = "1.35.1" features = ["full"] optional = true [dependencies.toml] version = "0.8.19" optional = true [dependencies.tracing] version = "0.1.40" [dependencies.uuid] version = "1.8.0" features = ["v4"] optional = true [dependencies.zip] version = "2.1.3" optional = true [dev-dependencies.clap] version = "4.5.4" features = ["derive"] [dev-dependencies.tracing-subscriber] version = "0.3.18" features = [] [features] backtest = [ "zip", "uuid", "nom", "hftbacktest-derive", ] default = [ "backtest", "live", ] live = [ "chrono", "tokio", "futures-util", "iceoryx2", "rand", "toml", "serde", ] unstable_fuse = []