pub struct StreamGetTickPricesData {
pub ask: Decimal,
pub ask_volume: Option<i32>,
pub bid: Decimal,
pub bid_volume: Option<i32>,
pub high: Decimal,
pub level: i32,
pub low: Decimal,
pub quote_id: QuoteId,
pub spread_raw: Decimal,
pub spread_table: Decimal,
pub symbol: String,
pub timestamp: u64,
}Fields§
§ask: DecimalAsk price in base currency
ask_volume: Option<i32>Number of available lots to buy at given price
bid: DecimalBid price in base currency
bid_volume: Option<i32>Number of available lots to sell at given price
high: DecimalThe highest price of the day in base currency
level: i32Price level
low: DecimalThe lowest price of the day in base currency
quote_id: QuoteIdSource of price
spread_raw: DecimalThe difference between raw ask and bid prices
spread_table: DecimalSpread representation
symbol: StringFinancial instrument symbol
timestamp: u64Time when the information was updated
Implementations§
Source§impl StreamGetTickPricesData
impl StreamGetTickPricesData
Sourcepub fn with_ask_volume(self, value: impl Into<i32>) -> Self
pub fn with_ask_volume(self, value: impl Into<i32>) -> Self
Sets the ask_volume field of this struct.
Sourcepub fn with_bid_volume(self, value: impl Into<i32>) -> Self
pub fn with_bid_volume(self, value: impl Into<i32>) -> Self
Sets the bid_volume field of this struct.
Sourcepub fn with_level(self, value: impl Into<i32>) -> Self
pub fn with_level(self, value: impl Into<i32>) -> Self
Sets the level field of this struct.
Sourcepub fn with_quote_id(self, value: impl Into<QuoteId>) -> Self
pub fn with_quote_id(self, value: impl Into<QuoteId>) -> Self
Sets the quote_id field of this struct.
Sourcepub fn with_spread_raw(self, value: impl Into<Decimal>) -> Self
pub fn with_spread_raw(self, value: impl Into<Decimal>) -> Self
Sets the spread_raw field of this struct.
Sourcepub fn with_spread_table(self, value: impl Into<Decimal>) -> Self
pub fn with_spread_table(self, value: impl Into<Decimal>) -> Self
Sets the spread_table field of this struct.
Sourcepub fn with_symbol(self, value: impl Into<String>) -> Self
pub fn with_symbol(self, value: impl Into<String>) -> Self
Sets the symbol field of this struct.
Sourcepub fn with_timestamp(self, value: impl Into<u64>) -> Self
pub fn with_timestamp(self, value: impl Into<u64>) -> Self
Sets the timestamp field of this struct.
Trait Implementations§
Source§impl Clone for StreamGetTickPricesData
impl Clone for StreamGetTickPricesData
Source§fn clone(&self) -> StreamGetTickPricesData
fn clone(&self) -> StreamGetTickPricesData
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 StreamGetTickPricesData
impl Debug for StreamGetTickPricesData
Source§impl Default for StreamGetTickPricesData
impl Default for StreamGetTickPricesData
Source§fn default() -> StreamGetTickPricesData
fn default() -> StreamGetTickPricesData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StreamGetTickPricesData
impl<'de> Deserialize<'de> for StreamGetTickPricesData
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 StreamGetTickPricesData
impl PartialEq for StreamGetTickPricesData
Source§impl Serialize for StreamGetTickPricesData
impl Serialize for StreamGetTickPricesData
impl StructuralPartialEq for StreamGetTickPricesData
Auto Trait Implementations§
impl Freeze for StreamGetTickPricesData
impl RefUnwindSafe for StreamGetTickPricesData
impl Send for StreamGetTickPricesData
impl Sync for StreamGetTickPricesData
impl Unpin for StreamGetTickPricesData
impl UnwindSafe for StreamGetTickPricesData
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)