pub struct MarketData {
pub bars: Symbols,
pub quotes: Symbols,
pub trades: Symbols,
}Expand description
A type defining the market data a client intends to subscribe to.
Fields§
§bars: SymbolsThe aggregate bars to subscribe to.
quotes: SymbolsThe quotes to subscribe to.
trades: SymbolsThe trades to subscribe to.
Implementations§
Source§impl MarketData
impl MarketData
Sourcepub fn set_bars<S>(&mut self, symbols: S)where
S: Into<SymbolList>,
pub fn set_bars<S>(&mut self, symbols: S)where
S: Into<SymbolList>,
A convenience function for setting the bars
member.
Sourcepub fn set_quotes<S>(&mut self, symbols: S)where
S: Into<SymbolList>,
pub fn set_quotes<S>(&mut self, symbols: S)where
S: Into<SymbolList>,
A convenience function for setting the quotes
member.
Sourcepub fn set_trades<S>(&mut self, symbols: S)where
S: Into<SymbolList>,
pub fn set_trades<S>(&mut self, symbols: S)where
S: Into<SymbolList>,
A convenience function for setting the trades
member.
Trait Implementations§
Source§impl Clone for MarketData
impl Clone for MarketData
Source§fn clone(&self) -> MarketData
fn clone(&self) -> MarketData
Returns a duplicate 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 MarketData
impl Debug for MarketData
Source§impl Default for MarketData
impl Default for MarketData
Source§fn default() -> MarketData
fn default() -> MarketData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MarketData
impl<'de> Deserialize<'de> for MarketData
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 MarketData
impl PartialEq for MarketData
Source§impl Serialize for MarketData
impl Serialize for MarketData
impl Eq for MarketData
impl StructuralPartialEq for MarketData
Auto Trait Implementations§
impl Freeze for MarketData
impl RefUnwindSafe for MarketData
impl Send for MarketData
impl Sync for MarketData
impl Unpin for MarketData
impl UnwindSafe for MarketData
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