pub enum DeriveWsChannel {
TickerSlim {
instrument_name: Ustr,
interval: DeriveTickerInterval,
},
Orderbook {
instrument_name: Ustr,
group: DeriveOrderbookGroup,
depth: DeriveOrderbookDepth,
},
Trades {
instrument_type: DeriveInstrumentType,
currency: Ustr,
},
Orders {
subaccount_id: u64,
},
PrivateTrades {
subaccount_id: u64,
},
Balances {
subaccount_id: u64,
},
Raw(String),
}Expand description
Derive WebSocket subscription channel topic.
Variants§
TickerSlim
Public compact ticker channel.
Fields
§
instrument_name: UstrVenue instrument name.
§
interval: DeriveTickerIntervalUpdate interval in milliseconds.
Orderbook
Public order book channel.
Fields
§
instrument_name: UstrVenue instrument name.
§
group: DeriveOrderbookGroupVenue grouping increment.
§
depth: DeriveOrderbookDepthRequested depth.
Trades
Public trades channel.
Orders
Private order updates channel.
PrivateTrades
Private trade updates channel.
Balances
Private balance updates channel.
Raw(String)
Passthrough topic for venue channels not yet modeled by the adapter.
Implementations§
Source§impl DeriveWsChannel
impl DeriveWsChannel
Sourcepub fn ticker_slim(
instrument_name: impl AsRef<str>,
interval: impl AsRef<str>,
) -> Self
pub fn ticker_slim( instrument_name: impl AsRef<str>, interval: impl AsRef<str>, ) -> Self
Returns a compact ticker channel.
Sourcepub fn orderbook(
instrument_name: impl AsRef<str>,
group: impl AsRef<str>,
depth: impl AsRef<str>,
) -> Self
pub fn orderbook( instrument_name: impl AsRef<str>, group: impl AsRef<str>, depth: impl AsRef<str>, ) -> Self
Returns an order book channel.
Sourcepub fn trades(
instrument_type: impl AsRef<str>,
currency: impl AsRef<str>,
) -> Self
pub fn trades( instrument_type: impl AsRef<str>, currency: impl AsRef<str>, ) -> Self
Returns a public trades channel.
Sourcepub const fn private_trades(subaccount_id: u64) -> Self
pub const fn private_trades(subaccount_id: u64) -> Self
Returns a private trades channel.
Sourcepub fn from_topic(topic: impl Into<String>) -> Self
pub fn from_topic(topic: impl Into<String>) -> Self
Parses a topic string into the known channel family when possible.
Trait Implementations§
Source§impl Clone for DeriveWsChannel
impl Clone for DeriveWsChannel
Source§fn clone(&self) -> DeriveWsChannel
fn clone(&self) -> DeriveWsChannel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeriveWsChannel
impl Debug for DeriveWsChannel
Source§impl<'de> Deserialize<'de> for DeriveWsChannel
impl<'de> Deserialize<'de> for DeriveWsChannel
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 Display for DeriveWsChannel
impl Display for DeriveWsChannel
impl Eq for DeriveWsChannel
Source§impl From<&str> for DeriveWsChannel
impl From<&str> for DeriveWsChannel
Source§impl From<String> for DeriveWsChannel
impl From<String> for DeriveWsChannel
Source§impl Hash for DeriveWsChannel
impl Hash for DeriveWsChannel
Source§impl PartialEq for DeriveWsChannel
impl PartialEq for DeriveWsChannel
Source§fn eq(&self, other: &DeriveWsChannel) -> bool
fn eq(&self, other: &DeriveWsChannel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DeriveWsChannel
impl Serialize for DeriveWsChannel
impl StructuralPartialEq for DeriveWsChannel
Auto Trait Implementations§
impl Freeze for DeriveWsChannel
impl RefUnwindSafe for DeriveWsChannel
impl Send for DeriveWsChannel
impl Sync for DeriveWsChannel
impl Unpin for DeriveWsChannel
impl UnsafeUnpin for DeriveWsChannel
impl UnwindSafe for DeriveWsChannel
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
Mutably borrows from an owned value. Read more
impl<'de, T> BorrowedRpcObject<'de> for Twhere
T: RpcBorrow<'de> + RpcSend,
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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