pub enum SubscriptionRequest {
Show 17 variants
AllMids {
dex: Option<String>,
},
Notification {
user: String,
},
WebData2 {
user: String,
},
Candle {
coin: Ustr,
interval: HyperliquidBarInterval,
},
L2Book {
coin: Ustr,
n_sig_figs: Option<u32>,
mantissa: Option<u32>,
},
Trades {
coin: Ustr,
},
OrderUpdates {
user: String,
},
UserEvents {
user: String,
},
UserFills {
user: String,
aggregate_by_time: Option<bool>,
},
UserFundings {
user: String,
},
UserNonFundingLedgerUpdates {
user: String,
},
ActiveAssetCtx {
coin: Ustr,
},
ActiveSpotAssetCtx {
coin: Ustr,
},
ActiveAssetData {
user: String,
coin: String,
},
UserTwapSliceFills {
user: String,
},
UserTwapHistory {
user: String,
},
Bbo {
coin: Ustr,
},
}Expand description
Represents subscription request types for WebSocket feeds.
Variants§
AllMids
All mid prices across markets.
Notification
Notifications for a user.
WebData2
Web data for frontend.
Candle
Candlestick data.
L2Book
Level 2 order book.
Trades
Trade updates.
OrderUpdates
Order updates for a user.
UserEvents
User events (fills, funding, liquidations).
UserFills
User fill history.
UserFundings
User funding payments.
UserNonFundingLedgerUpdates
User ledger updates (non-funding).
ActiveAssetCtx
Active asset context (for perpetuals).
ActiveSpotAssetCtx
Active spot asset context.
ActiveAssetData
Active asset data for user.
UserTwapSliceFills
TWAP slice fills.
UserTwapHistory
TWAP history.
Bbo
Best bid/offer updates.
Trait Implementations§
Source§impl Clone for SubscriptionRequest
impl Clone for SubscriptionRequest
Source§fn clone(&self) -> SubscriptionRequest
fn clone(&self) -> SubscriptionRequest
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 SubscriptionRequest
impl Debug for SubscriptionRequest
Source§impl<'de> Deserialize<'de> for SubscriptionRequest
impl<'de> Deserialize<'de> for SubscriptionRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SubscriptionRequest
impl PartialEq for SubscriptionRequest
Source§impl Serialize for SubscriptionRequest
impl Serialize for SubscriptionRequest
impl StructuralPartialEq for SubscriptionRequest
Auto Trait Implementations§
impl Freeze for SubscriptionRequest
impl RefUnwindSafe for SubscriptionRequest
impl Send for SubscriptionRequest
impl Sync for SubscriptionRequest
impl Unpin for SubscriptionRequest
impl UnsafeUnpin for SubscriptionRequest
impl UnwindSafe for SubscriptionRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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