pub struct HyperliquidExecClientConfig {Show 18 fields
pub private_key: Option<String>,
pub vault_address: Option<String>,
pub account_address: Option<String>,
pub base_url_ws: Option<String>,
pub base_url_http: Option<String>,
pub base_url_exchange: Option<String>,
pub proxy_url: Option<String>,
pub environment: HyperliquidEnvironment,
pub http_timeout_secs: u64,
pub max_retries: u32,
pub retry_delay_initial_ms: u64,
pub retry_delay_max_ms: u64,
pub normalize_prices: bool,
pub market_order_slippage_bps: u32,
pub include_builder_attribution: bool,
pub transport_backend: TransportBackend,
pub ws_post_timeout_secs: u64,
pub outcome_settlement_poll_secs: u64,
}Expand description
Configuration for the Hyperliquid execution client.
Fields§
§private_key: Option<String>Private key for signing transactions.
If not provided, falls back to environment variable:
- Mainnet:
HYPERLIQUID_PK - Testnet:
HYPERLIQUID_TESTNET_PK
vault_address: Option<String>Optional vault address for vault operations.
If not provided, falls back to environment variable:
- Mainnet:
HYPERLIQUID_VAULT - Testnet:
HYPERLIQUID_TESTNET_VAULT
account_address: Option<String>Optional main account address when using an agent wallet (API sub-key). When set, used for balance queries, position reports, and WS subscriptions instead of the address derived from the private key.
If not provided and no explicit vault address is set, falls back to
the HYPERLIQUID_ACCOUNT_ADDRESS environment variable.
base_url_ws: Option<String>Override for the WebSocket URL.
base_url_http: Option<String>Override for the HTTP info URL.
base_url_exchange: Option<String>Override for the exchange API URL.
proxy_url: Option<String>Optional proxy URL for HTTP and WebSocket transports.
environment: HyperliquidEnvironmentThe target environment (mainnet or testnet).
http_timeout_secs: u64HTTP timeout in seconds.
max_retries: u32Maximum number of retry attempts for HTTP requests.
retry_delay_initial_ms: u64Initial retry delay in milliseconds.
retry_delay_max_ms: u64Maximum retry delay in milliseconds.
normalize_prices: boolWhen true, normalize order prices to 5 significant figures before submission (Hyperliquid requirement).
market_order_slippage_bps: u32Slippage buffer in basis points applied to MARKET orders and
stop-to-limit trigger derivations. Can be overridden per-order via
SubmitOrder.params["market_order_slippage_bps"].
include_builder_attribution: boolIf true, attach Nautilus builder attribution to eligible mainnet orders.
transport_backend: TransportBackendWebSocket transport backend (Sockudo by default; Tungstenite when
the transport-sockudo feature is disabled).
ws_post_timeout_secs: u64Timeout in seconds for WebSocket post trading requests.
outcome_settlement_poll_secs: u64Poll interval in seconds for outcomeMeta settlement detection.
Disabled by default; venue Settlement fills drive HIP-4 settlement
through the standard user-fills stream. Set to a non-zero value only
when the venue fill stream is unavailable.
Implementations§
Source§impl HyperliquidExecClientConfig
impl HyperliquidExecClientConfig
Sourcepub fn builder() -> HyperliquidExecClientConfigBuilder
pub fn builder() -> HyperliquidExecClientConfigBuilder
Create an instance of HyperliquidExecClientConfig using the builder syntax
Source§impl HyperliquidExecClientConfig
impl HyperliquidExecClientConfig
Trait Implementations§
Source§impl Clone for HyperliquidExecClientConfig
impl Clone for HyperliquidExecClientConfig
Source§fn clone(&self) -> HyperliquidExecClientConfig
fn clone(&self) -> HyperliquidExecClientConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HyperliquidExecClientConfig
impl Debug for HyperliquidExecClientConfig
Source§impl<'de> Deserialize<'de> for HyperliquidExecClientConfigwhere
HyperliquidExecClientConfig: Default,
impl<'de> Deserialize<'de> for HyperliquidExecClientConfigwhere
HyperliquidExecClientConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for HyperliquidExecClientConfig
impl RefUnwindSafe for HyperliquidExecClientConfig
impl Send for HyperliquidExecClientConfig
impl Sync for HyperliquidExecClientConfig
impl Unpin for HyperliquidExecClientConfig
impl UnsafeUnpin for HyperliquidExecClientConfig
impl UnwindSafe for HyperliquidExecClientConfig
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<'de, T> BorrowedRpcObject<'de> for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more