pub struct HyperliquidClient { /* private fields */ }Implementations§
Trait Implementations§
Source§impl GetMarketData for HyperliquidClient
impl GetMarketData for HyperliquidClient
Source§impl ManageOrder for HyperliquidClient
impl ManageOrder for HyperliquidClient
Source§impl SubscribeMarketData for HyperliquidClient
impl SubscribeMarketData for HyperliquidClient
Source§fn subscribe_l2_update(&self, symbol: String) -> BoxStream<L2Update>
fn subscribe_l2_update(&self, symbol: String) -> BoxStream<L2Update>
Streams L2 orderbook updates for symbol. Each message from Hyperliquid is a
full-depth snapshot; every level is emitted as an individual L2Update event.
All levels in the same snapshot share the same sequence value.
Source§fn subscribe_asset_context(&self, symbol: String) -> BoxStream<AssetContext>
fn subscribe_asset_context(&self, symbol: String) -> BoxStream<AssetContext>
Streams asset context updates for symbol via Hyperliquid’s activeAssetCtx subscription.
Each message carries OI, funding rate, mark price, and 24h notional volume.
Source§fn subscribe_liquidation(&self, user: String) -> BoxStream<Liquidation>
fn subscribe_liquidation(&self, user: String) -> BoxStream<Liquidation>
Streams liquidation events for a user address via Hyperliquid’s userEvents subscription.
Note: Hyperliquid’s liquidation event is account-level; symbol is set to empty string
and side defaults to OrderSide::Sell as the data source does not provide per-position detail.
Source§impl TestServer for HyperliquidClient
impl TestServer for HyperliquidClient
Auto Trait Implementations§
impl Freeze for HyperliquidClient
impl !RefUnwindSafe for HyperliquidClient
impl Send for HyperliquidClient
impl Sync for HyperliquidClient
impl Unpin for HyperliquidClient
impl UnsafeUnpin for HyperliquidClient
impl !UnwindSafe for HyperliquidClient
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