Struct hyperliquid_rust_sdk::MarketMaker
source · pub struct MarketMaker {Show 13 fields
pub asset: String,
pub target_liquidity: f64,
pub half_spread: u16,
pub max_bps_diff: u16,
pub max_absolute_position_size: f64,
pub decimals: u32,
pub lower_resting: MarketMakerRestingOrder,
pub upper_resting: MarketMakerRestingOrder,
pub cur_position: f64,
pub latest_mid_price: f64,
pub info_client: InfoClient,
pub exchange_client: ExchangeClient,
pub user_address: H160,
}Fields§
§asset: String§target_liquidity: f64§half_spread: u16§max_bps_diff: u16§max_absolute_position_size: f64§decimals: u32§lower_resting: MarketMakerRestingOrder§upper_resting: MarketMakerRestingOrder§cur_position: f64§latest_mid_price: f64§info_client: InfoClient§exchange_client: ExchangeClient§user_address: H160Implementations§
source§impl MarketMaker
impl MarketMaker
pub async fn new(input: MarketMakerInput) -> MarketMaker
pub async fn start(&mut self)
Auto Trait Implementations§
impl !RefUnwindSafe for MarketMaker
impl Send for MarketMaker
impl Sync for MarketMaker
impl Unpin for MarketMaker
impl !UnwindSafe for MarketMaker
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