pub enum MarketDepths {
MarketDepth(MarketDepth),
MarketDepthL2(MarketDepthL2),
Reset,
}Expand description
Market depth data types.
Apply MarketDepth / MarketDepthL2 rows to the book you hold; on
Reset, drop every row first. The stream stays open
through a reset. Code 316 (“Market depth data has been HALTED”) is
terminal: the stream ends with Err, and the caller re-subscribes.
Variants§
MarketDepth(MarketDepth)
Level-1 depth update.
MarketDepthL2(MarketDepthL2)
Level-2 (per exchange/MPID) depth update.
Reset
TWS discarded the book on its side (code 317, “Market depth data has
been RESET”): empty every row held, then rebuild from the updates that
follow. Delivered as data so it survives filter_data / iter_data.
Trait Implementations§
Source§impl ComposeSchema for MarketDepths
impl ComposeSchema for MarketDepths
Source§impl Debug for MarketDepths
impl Debug for MarketDepths
Source§impl<'de> Deserialize<'de> for MarketDepths
impl<'de> Deserialize<'de> for MarketDepths
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 MarketDepths
impl PartialEq for MarketDepths
impl Resubscribable for MarketDepths
Source§impl Serialize for MarketDepths
impl Serialize for MarketDepths
impl StructuralPartialEq for MarketDepths
Auto Trait Implementations§
impl Freeze for MarketDepths
impl RefUnwindSafe for MarketDepths
impl Send for MarketDepths
impl Sync for MarketDepths
impl Unpin for MarketDepths
impl UnsafeUnpin for MarketDepths
impl UnwindSafe for MarketDepths
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