pub struct ChartCandleUpdate {Show 17 fields
pub epic: String,
pub scale: Option<CandleScale>,
pub ofr_open: Option<f64>,
pub ofr_high: Option<f64>,
pub ofr_low: Option<f64>,
pub ofr_close: Option<f64>,
pub bid_open: Option<f64>,
pub bid_high: Option<f64>,
pub bid_low: Option<f64>,
pub bid_close: Option<f64>,
pub ltp_open: Option<f64>,
pub ltp_high: Option<f64>,
pub ltp_low: Option<f64>,
pub ltp_close: Option<f64>,
pub cons_end: Option<bool>,
pub cons_tick_count: Option<i64>,
pub utm: Option<i64>,
}Available on crate feature
stream only.Expand description
A candle update from a CHART:<epic>:<scale> subscription.
Fields§
§epic: StringThe IG epic this update belongs to.
scale: Option<CandleScale>Candle scale.
ofr_open: Option<f64>Offer open price.
ofr_high: Option<f64>Offer high price.
ofr_low: Option<f64>Offer low price.
ofr_close: Option<f64>Offer close price.
bid_open: Option<f64>Bid open price.
bid_high: Option<f64>Bid high price.
bid_low: Option<f64>Bid low price.
bid_close: Option<f64>Bid close price.
ltp_open: Option<f64>Last-traded-price open.
ltp_high: Option<f64>Last-traded-price high.
ltp_low: Option<f64>Last-traded-price low.
ltp_close: Option<f64>Last-traded-price close.
cons_end: Option<bool>Whether the candle is complete (1) or still forming (0).
cons_tick_count: Option<i64>Number of ticks in this candle.
utm: Option<i64>UTC millisecond timestamp.
Implementations§
Trait Implementations§
Source§impl Clone for ChartCandleUpdate
impl Clone for ChartCandleUpdate
Source§fn clone(&self) -> ChartCandleUpdate
fn clone(&self) -> ChartCandleUpdate
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 ChartCandleUpdate
impl Debug for ChartCandleUpdate
Source§impl Default for ChartCandleUpdate
impl Default for ChartCandleUpdate
Source§fn default() -> ChartCandleUpdate
fn default() -> ChartCandleUpdate
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChartCandleUpdate
impl RefUnwindSafe for ChartCandleUpdate
impl Send for ChartCandleUpdate
impl Sync for ChartCandleUpdate
impl Unpin for ChartCandleUpdate
impl UnsafeUnpin for ChartCandleUpdate
impl UnwindSafe for ChartCandleUpdate
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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