[package]
edition = "2024"
rust-version = "1.97.1"
name = "nautilus-hyperliquid"
version = "0.61.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]
features = [
"arrow",
"examples",
"high-precision",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
arrow = [
"dep:arrow",
"nautilus-serialization",
]
default = ["high-precision"]
examples = [
"nautilus-live/node",
"nautilus-network/transport-sockudo",
]
extension-module = [
"nautilus-common/extension-module",
"nautilus-core/extension-module",
"nautilus-live/extension-module",
"nautilus-model/extension-module",
"nautilus-network/extension-module",
"pyo3/extension-module",
"python",
]
high-precision = [
"nautilus-model/high-precision",
"nautilus-serialization?/high-precision",
]
python = [
"dep:nautilus-system",
"nautilus-common/python",
"nautilus-core/python",
"nautilus-live/python",
"nautilus-model/python",
"nautilus-network/python",
"nautilus-system/python",
"pyo3",
"pyo3-async-runtimes",
"pyo3-stub-gen",
]
[lib]
name = "nautilus_hyperliquid"
crate-type = ["rlib"]
path = "src/lib.rs"
[[bin]]
name = "hyperliquid-builder-fee-approve"
path = "bin/builder_fee_approve.rs"
test = false
doc = false
[[bin]]
name = "hyperliquid-builder-fee-revoke"
path = "bin/builder_fee_revoke.rs"
test = false
doc = false
[[bin]]
name = "hyperliquid-capture-test-data"
path = "bin/capture_test_data.rs"
test = false
doc = false
[[bin]]
name = "hyperliquid-flatten"
path = "bin/flatten.rs"
test = false
doc = false
[[bin]]
name = "hyperliquid-http-exec"
path = "bin/http_exec.rs"
test = false
doc = false
[[bin]]
name = "hyperliquid-http-outcome-order"
path = "bin/http_outcome_order.rs"
test = false
doc = false
[[bin]]
name = "hyperliquid-http-private"
path = "bin/http_private.rs"
test = false
doc = false
[[bin]]
name = "hyperliquid-http-public"
path = "bin/http_public.rs"
test = false
doc = false
[[bin]]
name = "hyperliquid-http-user-outcome"
path = "bin/http_user_outcome.rs"
test = false
doc = false
[[bin]]
name = "hyperliquid-ws-data"
path = "bin/ws_data.rs"
test = false
doc = false
[[bin]]
name = "hyperliquid-ws-exec"
path = "bin/ws_exec.rs"
test = false
doc = false
[[example]]
name = "hyperliquid-chained-modify-smoke"
path = "examples/chained_modify_smoke.rs"
doc = false
required-features = ["examples"]
[[example]]
name = "hyperliquid-data-tester"
path = "examples/node_data_tester.rs"
doc = false
required-features = ["examples"]
[[example]]
name = "hyperliquid-exec-tester"
path = "examples/node_exec_tester.rs"
doc = false
required-features = ["examples"]
[[example]]
name = "hyperliquid-outcome-exec-tester"
path = "examples/node_outcome_exec_tester.rs"
doc = false
required-features = ["examples"]
[[test]]
name = "catalog"
path = "tests/catalog.rs"
[[test]]
name = "data_client"
path = "tests/data_client.rs"
[[test]]
name = "dispatch"
path = "tests/dispatch.rs"
[[test]]
name = "exec_client"
path = "tests/exec_client.rs"
[[test]]
name = "http"
path = "tests/http.rs"
[[test]]
name = "python"
path = "tests/python.rs"
required-features = ["python"]
[[test]]
name = "websocket"
path = "tests/websocket.rs"
[[bench]]
name = "data"
path = "benches/data.rs"
harness = false
[[bench]]
name = "exec"
path = "benches/exec.rs"
harness = false
[[bench]]
name = "micros"
path = "benches/micros.rs"
harness = false
[[bench]]
name = "signing"
path = "benches/signing.rs"
harness = false
[dependencies.ahash]
version = "0.8.12"
features = ["serde"]
[dependencies.alloy]
version = "2.2.0"
features = [
"sol-types",
"contract",
"signers",
"signer-local",
]
default-features = false
[dependencies.alloy-primitives]
version = "1.6.1"
features = [
"std",
"serde",
]
default-features = false
[dependencies.anyhow]
version = "1.0.104"
[dependencies.arc-swap]
version = "1.9.2"
[dependencies.arrow]
version = "58.4.0"
features = [
"csv",
"json",
"ipc",
"ffi",
]
optional = true
default-features = false
[dependencies.async-trait]
version = "0.1.91"
[dependencies.bon]
version = "3.9.3"
[dependencies.chrono]
version = "0.4.45"
features = [
"serde",
"std",
"clock",
]
default-features = false
[dependencies.dashmap]
version = "6.2.1"
[dependencies.derive_builder]
version = "0.20.2"
features = ["alloc"]
default-features = false
[dependencies.futures-util]
version = "0.3.33"
features = [
"std",
"async-await",
"sink",
]
default-features = false
[dependencies.log]
version = "0.4.33"
features = [
"std",
"kv_unstable",
"serde",
"release_max_level_debug",
]
[dependencies.nautilus-common]
version = "0.61.0"
features = ["live"]
[dependencies.nautilus-core]
version = "0.61.0"
[dependencies.nautilus-live]
version = "0.61.0"
default-features = false
[dependencies.nautilus-model]
version = "0.61.0"
[dependencies.nautilus-network]
version = "0.61.0"
[dependencies.nautilus-persistence-macros]
version = "0.61.0"
[dependencies.nautilus-serialization]
version = "0.61.0"
features = ["arrow"]
optional = true
[dependencies.nautilus-system]
version = "0.61.0"
optional = true
[dependencies.pyo3]
version = "0.29.0"
features = [
"chrono",
"hashbrown",
"indexmap",
"macros",
"multiple-pymethods",
"rust_decimal",
"serde",
]
optional = true
default-features = false
[dependencies.pyo3-async-runtimes]
version = "0.29.0"
features = [
"attributes",
"tokio",
"tokio-runtime",
]
optional = true
default-features = false
[dependencies.pyo3-stub-gen]
version = "=0.20.0"
features = ["rust_decimal"]
optional = true
default-features = false
[dependencies.rmp-serde]
version = "1.3.1"
[dependencies.rust_decimal]
version = "1.42.1"
features = ["serde-with-float"]
[dependencies.rust_decimal_macros]
version = "1.40.0"
[dependencies.serde]
version = "1.0.229"
features = [
"derive",
"std",
"rc",
]
default-features = false
[dependencies.serde_json]
version = "1.0.151"
features = [
"raw_value",
"std",
]
default-features = false
[dependencies.strum]
version = "0.28.0"
features = ["derive"]
[dependencies.thiserror]
version = "2.0.19"
[dependencies.tokio]
version = "1.53.1"
features = [
"rt-multi-thread",
"sync",
"fs",
"io-util",
"net",
"time",
"macros",
"signal",
]
default-features = false
[dependencies.tokio-tungstenite]
version = "0.30.0"
features = ["rustls-tls-webpki-roots"]
[dependencies.tokio-util]
version = "0.7.19"
features = ["io"]
default-features = false
[dependencies.url]
version = "2.5.8"
default-features = false
[dependencies.ustr]
version = "1.1.0"
features = ["serde"]
[dependencies.zeroize]
version = "1.9.0"
features = [
"alloc",
"zeroize_derive",
]
[dev-dependencies.axum]
version = "0.8.9"
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.33"
features = [
"std",
"async-await",
"sink",
]
default-features = false
[dev-dependencies.nautilus-persistence]
version = "0.61.0"
[dev-dependencies.nautilus-testkit]
version = "0.61.0"
features = ["testers"]
default-features = false
[dev-dependencies.nautilus-trading]
version = "0.61.0"
[dev-dependencies.rstest]
version = "0.26.1"
[dev-dependencies.tempfile]
version = "3.27.0"
[dev-dependencies.toml]
version = "1.1.3"
features = [
"parse",
"serde",
]
default-features = false
[lints.clippy]
await_holding_lock = "warn"
await_holding_refcell_ref = "warn"
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"
debug_assert_with_mut_call = "warn"
disallowed_methods = "warn"
disallowed_types = "warn"
empty_drop = "warn"
equatable_if_let = "warn"
exit = "warn"
expl_impl_clone_on_copy = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
filter_map_next = "warn"
flat_map_option = "warn"
float_cmp_const = "warn"
get_first = "warn"
identity_op = "warn"
if_let_mutex = "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"
infallible_try_from = "warn"
invalid_upcast_comparisons = "warn"
items_after_statements = "warn"
iter_kv_map = "warn"
iter_not_returning_iterator = "warn"
iter_nth_zero = "warn"
large_futures = "warn"
large_stack_arrays = "warn"
let_underscore_future = "warn"
lossy_float_literal = "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"
mem_forget = "warn"
multiple_unsafe_ops_per_block = "warn"
mut_mut = "warn"
naive_bytecount = "warn"
needless_bool = "warn"
needless_borrow = "warn"
needless_borrows_for_generic_args = "warn"
needless_collect = "warn"
needless_continue = "warn"
needless_for_each = "warn"
needless_late_init = "warn"
needless_lifetimes = "warn"
needless_match = "warn"
needless_option_as_deref = "warn"
needless_pass_by_ref_mut = "warn"
needless_pass_by_value = "warn"
needless_range_loop = "warn"
needless_raw_string_hashes = "warn"
needless_raw_strings = "warn"
needless_return = "warn"
needless_update = "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"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_clone = "warn"
redundant_closure = "warn"
redundant_else = "allow"
redundant_field_names = "warn"
ref_as_ptr = "warn"
rest_pat_in_fully_bound_structs = "warn"
return_self_not_must_use = "warn"
semicolon_if_nothing_returned = "warn"
similar_names = "allow"
single_char_pattern = "warn"
single_match_else = "allow"
stable_sort_primitive = "warn"
suspicious_doc_comments = "warn"
unchecked_time_subtraction = "warn"
uninlined_format_args = "warn"
unnecessary_box_returns = "warn"
unnecessary_debug_formatting = "warn"
unnecessary_filter_map = "warn"
unnecessary_join = "warn"
unnecessary_lazy_evaluations = "warn"
unnecessary_literal_bound = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unnecessary_self_imports = "warn"
unnecessary_semicolon = "warn"
unnecessary_sort_by = "warn"
unnecessary_struct_initialization = "warn"
unnecessary_to_owned = "warn"
unnecessary_wraps = "warn"
unnested_or_patterns = "warn"
use_self = "warn"
useless_conversion = "warn"
verbose_bit_mask = "warn"
[lints.rust]
unreachable_pub = "deny"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(madsim)"]