Enum crypto_crawler::MessageType
source · pub enum MessageType {
Show 14 variants
Other,
Trade,
L2Event,
L2Snapshot,
L2TopK,
L3Event,
L3Snapshot,
BBO,
Ticker,
Candlestick,
FundingRate,
OpenInterest,
LongShortRatio,
TakerVolume,
}
Expand description
Crypto message types.
L2Snapshot and L2TopK are very similar, the former is from RESTful API, the latter is from websocket.
Variants§
Other
All other messages
Trade
tick-by-tick trade messages
L2Event
Incremental level2 orderbook updates
L2Snapshot
Level2 snapshot from RESTful API
L2TopK
Level2 top K snapshots from websocket
L3Event
Incremental level3 orderbook updates
L3Snapshot
Level3 snapshot from RESTful API
BBO
Best bid and ask
Ticker
24hr rolling window ticker
Candlestick
OHLCV candlestick
FundingRate
Funding rate
OpenInterest
Open interest
LongShortRatio
Long/short ratio
TakerVolume
Taker buy/sell volume
Trait Implementations§
source§impl Clone for MessageType
impl Clone for MessageType
source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
Returns a copy 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 MessageType
impl Debug for MessageType
source§impl<'de> Deserialize<'de> for MessageType
impl<'de> Deserialize<'de> for MessageType
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<MessageType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<MessageType, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for MessageType
impl Display for MessageType
source§impl FromStr for MessageType
impl FromStr for MessageType
source§impl Hash for MessageType
impl Hash for MessageType
source§impl PartialEq<MessageType> for MessageType
impl PartialEq<MessageType> for MessageType
source§fn eq(&self, other: &MessageType) -> bool
fn eq(&self, other: &MessageType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MessageType
impl Serialize for MessageType
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TryFrom<&str> for MessageType
impl TryFrom<&str> for MessageType
impl Copy for MessageType
impl Eq for MessageType
impl StructuralEq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.