[package]
edition = "2024"
rust-version = "1.93.1"
name = "nautilus-hyperliquid"
version = "0.53.0"
authors = ["Nautech Systems <info@nautechsystems.io>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Hyperliquid integration adapter for the Nautilus trading engine"
homepage = "https://nautilustrader.io"
documentation = "https://nautilustrader.io/docs"
readme = "README.md"
keywords = [
"finance",
"trading",
"trading-platform",
"algorithmic-trading",
"quantitative-finance",
]
categories = [
"finance",
"simulation",
"asynchronous",
]
license = "LGPL-3.0-or-later"
repository = "https://github.com/nautechsystems/nautilus_trader"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["high-precision"]
extension-module = [
"nautilus-common/extension-module",
"nautilus-core/extension-module",
"nautilus-model/extension-module",
"nautilus-network/extension-module",
"python",
"pyo3/extension-module",
]
high-precision = ["nautilus-model/high-precision"]
python = [
"nautilus-common/python",
"nautilus-core/python",
"nautilus-model/python",
"nautilus-network/python",
"pyo3",
"pyo3-async-runtimes",
]
[lib]
name = "nautilus_hyperliquid"
crate-type = [
"rlib",
"cdylib",
]
path = "src/lib.rs"
[[bin]]
name = "hyperliquid-builder-fee-approve"
path = "bin/builder_fee_approve.rs"
doc = false
[[bin]]
name = "hyperliquid-builder-fee-revoke"
path = "bin/builder_fee_revoke.rs"
doc = false
[[bin]]
name = "hyperliquid-builder-fee-verify"
path = "bin/builder_fee_verify.rs"
doc = false
[[bin]]
name = "hyperliquid-capture-test-data"
path = "bin/capture_test_data.rs"
doc = false
[[bin]]
name = "hyperliquid-http-exec"
path = "bin/http_exec.rs"
doc = false
[[bin]]
name = "hyperliquid-http-private"
path = "bin/http_private.rs"
doc = false
[[bin]]
name = "hyperliquid-http-public"
path = "bin/http_public.rs"
doc = false
[[bin]]
name = "hyperliquid-ws-data"
path = "bin/ws_data.rs"
doc = false
[[bin]]
name = "hyperliquid-ws-exec"
path = "bin/ws_exec.rs"
doc = false
[[example]]
name = "hyperliquid-data-tester"
path = "examples/node_data_tester.rs"
doc = false
required-features = []
[[example]]
name = "hyperliquid-exec-tester"
path = "examples/node_exec_tester.rs"
doc = false
required-features = []
[[test]]
name = "data_client"
path = "tests/data_client.rs"
[[test]]
name = "exec_client"
path = "tests/exec_client.rs"
[[test]]
name = "http"
path = "tests/http.rs"
[[test]]
name = "websocket"
path = "tests/websocket.rs"
[dependencies.ahash]
version = "0.8.12"
features = ["serde"]
[dependencies.alloy-primitives]
version = "1.5.7"
features = [
"std",
"serde",
]
default-features = false
[dependencies.alloy-signer]
version = "1.7.3"
default-features = false
[dependencies.alloy-signer-local]
version = "1.7.3"
features = ["mnemonic"]
default-features = false
[dependencies.alloy-sol-types]
version = "1.5.7"
[dependencies.anyhow]
version = "1.0.102"
[dependencies.arc-swap]
version = "1.8.2"
[dependencies.async-trait]
version = "0.1.89"
[dependencies.chrono]
version = "0.4.43"
features = [
"serde",
"std",
"clock",
]
default-features = false
[dependencies.ctrlc]
version = "3.5.2"
[dependencies.dashmap]
version = "6.1.0"
[dependencies.derive_builder]
version = "0.20.2"
features = ["alloc"]
default-features = false
[dependencies.futures-util]
version = "0.3.32"
features = [
"std",
"async-await",
"sink",
]
default-features = false
[dependencies.hex]
version = "0.4.3"
[dependencies.log]
version = "0.4.29"
features = [
"std",
"kv_unstable",
"serde",
"release_max_level_debug",
]
[dependencies.nautilus-common]
version = "0.53.0"
features = ["live"]
[dependencies.nautilus-core]
version = "0.53.0"
[dependencies.nautilus-live]
version = "0.53.0"
[dependencies.nautilus-model]
version = "0.53.0"
[dependencies.nautilus-network]
version = "0.53.0"
[dependencies.nautilus-system]
version = "0.53.0"
[dependencies.pyo3]
version = "0.28.2"
features = [
"chrono",
"hashbrown",
"indexmap",
"macros",
"rust_decimal",
"serde",
]
optional = true
default-features = false
[dependencies.pyo3-async-runtimes]
version = "0.28.0"
features = [
"attributes",
"tokio",
"tokio-runtime",
]
optional = true
default-features = false
[dependencies.rmp-serde]
version = "1.3.1"
[dependencies.rust_decimal]
version = "1.40.0"
features = ["serde-with-float"]
[dependencies.rust_decimal_macros]
version = "1.40.0"
[dependencies.serde]
version = "1.0.228"
features = [
"derive",
"std",
"rc",
]
default-features = false
[dependencies.serde_json]
version = "1.0.149"
features = ["std"]
default-features = false
[dependencies.strum]
version = "0.27.2"
features = ["derive"]
[dependencies.thiserror]
version = "2.0.18"
[dependencies.tokio]
version = "1.49.0"
features = [
"rt-multi-thread",
"sync",
"fs",
"io-util",
"net",
"time",
"macros",
"signal",
]
default-features = false
[dependencies.tokio-tungstenite]
version = "0.28.0"
features = ["rustls-tls-webpki-roots"]
[dependencies.tokio-util]
version = "0.7.18"
features = ["io"]
default-features = false
[dependencies.url]
version = "2.5.8"
default-features = false
[dependencies.ustr]
version = "1.1.0"
features = ["serde"]
[dependencies.uuid]
version = "1.21.0"
features = [
"v4",
"serde",
]
[dependencies.zeroize]
version = "1.8.2"
features = [
"alloc",
"zeroize_derive",
]
[dev-dependencies.axum]
version = "0.8.8"
features = [
"tokio",
"http1",
"json",
"query",
"ws",
]
default-features = false
[dev-dependencies.criterion]
version = "0.8.2"
features = ["cargo_bench_support"]
default-features = false
[dev-dependencies.dotenvy]
version = "0.15.7"
[dev-dependencies.futures-util]
version = "0.3.32"
features = [
"std",
"async-await",
"sink",
]
default-features = false
[dev-dependencies.nautilus-testkit]
version = "0.53.0"
[dev-dependencies.rstest]
version = "0.26.1"
[lints.clippy]
bool_to_int_with_if = "warn"
borrow_as_ptr = "warn"
bytes_count_to_len = "warn"
checked_conversions = "warn"
cloned_instead_of_copied = "warn"
collapsible_else_if = "warn"
collapsible_if = "warn"
copy_iterator = "warn"
dbg_macro = "warn"
equatable_if_let = "warn"
expl_impl_clone_on_copy = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
filter_map_next = "warn"
flat_map_option = "warn"
from_iter_instead_of_collect = "warn"
get_first = "warn"
identity_op = "warn"
if_not_else = "warn"
if_same_then_else = "warn"
ignored_unit_patterns = "warn"
implicit_clone = "warn"
inconsistent_struct_constructor = "warn"
inefficient_to_string = "warn"
items_after_statements = "warn"
iter_kv_map = "warn"
iter_nth_zero = "warn"
large_stack_arrays = "warn"
manual_assert = "warn"
manual_filter = "warn"
manual_find = "warn"
manual_flatten = "warn"
manual_instant_elapsed = "warn"
manual_is_ascii_check = "warn"
manual_is_variant_and = "warn"
manual_let_else = "allow"
manual_map = "warn"
manual_range_contains = "warn"
manual_split_once = "warn"
manual_string_new = "warn"
manual_strip = "warn"
manual_while_let_some = "warn"
map_flatten = "warn"
map_identity = "warn"
map_unwrap_or = "warn"
match_bool = "warn"
match_like_matches_macro = "warn"
mut_mut = "warn"
naive_bytecount = "warn"
needless_bool = "warn"
needless_borrow = "warn"
needless_collect = "warn"
needless_for_each = "warn"
needless_return = "warn"
option_as_ref_deref = "warn"
option_if_let_else = "allow"
option_option = "warn"
or_fun_call = "allow"
panic_in_result_fn = "warn"
ptr_as_ptr = "warn"
range_plus_one = "warn"
redundant_clone = "warn"
redundant_closure = "warn"
redundant_else = "allow"
redundant_field_names = "warn"
return_self_not_must_use = "warn"
semicolon_if_nothing_returned = "warn"
single_char_pattern = "warn"
single_match_else = "allow"
stable_sort_primitive = "warn"
suspicious_doc_comments = "warn"
uninlined_format_args = "warn"
unnecessary_filter_map = "warn"
unnecessary_lazy_evaluations = "warn"
unnecessary_sort_by = "warn"
unnecessary_to_owned = "warn"
unnested_or_patterns = "warn"
use_self = "warn"
useless_conversion = "warn"
verbose_bit_mask = "warn"