pub enum MarketDataType {
Unknown = 0,
Realtime = 1,
Frozen = 2,
Delayed = 3,
DelayedFrozen = 4,
}Expand description
Market data type for switching between real-time and frozen/delayed.
Variants§
Unknown = 0
Sentinel for values not recognized by this client (forward compatibility).
Decode-only in spirit — encoding sends 0, which TWS will reject.
Realtime = 1
Live market data
Frozen = 2
Frozen market data (for when market is closed)
Delayed = 3
Delayed market data (usually 15-20 minutes)
DelayedFrozen = 4
Delayed frozen market data
Trait Implementations§
Source§impl Clone for MarketDataType
impl Clone for MarketDataType
Source§fn clone(&self) -> MarketDataType
fn clone(&self) -> MarketDataType
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 ComposeSchema for MarketDataType
impl ComposeSchema for MarketDataType
Source§impl Debug for MarketDataType
impl Debug for MarketDataType
Source§impl From<i32> for MarketDataType
impl From<i32> for MarketDataType
Source§impl PartialEq for MarketDataType
impl PartialEq for MarketDataType
Source§fn eq(&self, other: &MarketDataType) -> bool
fn eq(&self, other: &MarketDataType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ToSchema for MarketDataType
impl ToSchema for MarketDataType
impl Copy for MarketDataType
impl Eq for MarketDataType
impl StructuralPartialEq for MarketDataType
Auto Trait Implementations§
impl Freeze for MarketDataType
impl RefUnwindSafe for MarketDataType
impl Send for MarketDataType
impl Sync for MarketDataType
impl Unpin for MarketDataType
impl UnsafeUnpin for MarketDataType
impl UnwindSafe for MarketDataType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.