pub struct PushQuote {
pub last_done: Decimal,
pub open: Decimal,
pub high: Decimal,
pub low: Decimal,
pub timestamp: OffsetDateTime,
pub volume: i64,
pub turnover: Decimal,
pub trade_status: TradeStatus,
pub trade_session: TradeSession,
pub current_volume: i64,
pub current_turnover: Decimal,
}Expand description
Quote message
Fields§
§last_done: DecimalLatest price
open: DecimalOpen
high: DecimalHigh
low: DecimalLow
timestamp: OffsetDateTimeTime of latest price
volume: i64Volume
turnover: DecimalTurnover
trade_status: TradeStatusSecurity trading status
trade_session: TradeSessionTrade session
current_volume: i64Increase volume between pushes
current_turnover: DecimalIncrease turnover between pushes
Trait Implementations§
Source§impl QuoteType for PushQuote
impl QuoteType for PushQuote
type PriceType = Decimal
type VolumeType = i64
type TurnoverType = Decimal
type TradeSessionType = TradeSession
fn time(&self) -> OffsetDateTime
fn open(&self) -> Self::PriceType
fn high(&self) -> Self::PriceType
fn low(&self) -> Self::PriceType
fn last_done(&self) -> Self::PriceType
fn volume(&self) -> Self::VolumeType
fn turnover(&self) -> Self::TurnoverType
fn trade_session(&self) -> Self::TradeSessionType
Source§impl TradeType for PushQuote
impl TradeType for PushQuote
type PriceType = Decimal
type VolumeType = i64
type TurnoverType = Decimal
type TradeSessionType = TradeSession
fn time(&self) -> OffsetDateTime
fn price(&self) -> Self::PriceType
fn volume(&self) -> Self::VolumeType
fn turnover(&self, _lot_size: i32) -> Self::TurnoverType
fn trade_session(&self) -> Self::TradeSessionType
Auto Trait Implementations§
impl Freeze for PushQuote
impl RefUnwindSafe for PushQuote
impl Send for PushQuote
impl Sync for PushQuote
impl Unpin for PushQuote
impl UnwindSafe for PushQuote
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more