Enum crypto_msg_type::MessageType [−][src]
#[repr(C)]
pub enum MessageType {
Other,
Trade,
L2Event,
L2Snapshot,
L2TopK,
L3Event,
L3Snapshot,
BBO,
Ticker,
Candlestick,
FundingRate,
OpenInterest,
}
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
Trait Implementations
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
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
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
Mutably borrows from an owned value. Read more