# 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.80.1" name = "hftbacktest" version = "0.4.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.hmac] version = "0.13.0-pre.3" optional = true [dependencies.nom] version = "7.1.3" optional = true [dependencies.rand] version = "0.8.5" optional = true [dependencies.reqwest] version = "0.12.3" features = [ "json", "rustls-tls-native-roots", ] optional = true default-features = false [dependencies.serde] version = "1.0.196" features = ["derive"] optional = true [dependencies.serde_json] version = "1.0.113" optional = true [dependencies.sha2] version = "0.11.0-pre.3" optional = true [dependencies.thiserror] version = "1.0.57" [dependencies.tokio] version = "1.35.1" features = ["full"] optional = true [dependencies.tokio-tungstenite] version = "0.23.1" features = ["rustls-tls-native-roots"] 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", ] binancefutures = [ "serde", "serde_json", "tokio-tungstenite", "use_reqwest", "sha2", "hmac", "rand", ] bybit = [ "serde", "serde_json", "tokio-tungstenite", "use_reqwest", "sha2", "hmac", "rand", ] default = [ "backtest", "live", "binancefutures", "bybit", ] live = [ "chrono", "tokio", "futures-util", ] unstable_fuse = [] use_reqwest = ["reqwest"]