pub struct HyperLiquidOptions {
pub testnet: bool,
pub vault_address: Option<String>,
pub default_leverage: u32,
pub default_type: DefaultType,
}Expand description
HyperLiquid-specific options.
Note: HyperLiquid only supports perpetual futures (Swap). The default_type
field defaults to Swap and attempting to set it to any other value will
result in a validation error.
Fields§
§testnet: boolWhether to use testnet.
vault_address: Option<String>Vault address for vault trading (optional).
default_leverage: u32Default leverage multiplier.
default_type: DefaultTypeDefault market type for trading.
HyperLiquid only supports perpetual futures, so this must be Swap.
Attempting to set any other value will result in a validation error.
Trait Implementations§
Source§impl Clone for HyperLiquidOptions
impl Clone for HyperLiquidOptions
Source§fn clone(&self) -> HyperLiquidOptions
fn clone(&self) -> HyperLiquidOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HyperLiquidOptions
impl Debug for HyperLiquidOptions
Auto Trait Implementations§
impl Freeze for HyperLiquidOptions
impl RefUnwindSafe for HyperLiquidOptions
impl Send for HyperLiquidOptions
impl Sync for HyperLiquidOptions
impl Unpin for HyperLiquidOptions
impl UnwindSafe for HyperLiquidOptions
Blanket Implementations§
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
Mutably borrows from an owned value. Read more