pub struct Candlestick {
pub close: Decimal,
pub open: Decimal,
pub low: Decimal,
pub high: Decimal,
pub volume: i64,
pub turnover: Decimal,
pub timestamp: OffsetDateTime,
pub trade_session: TradeSession,
/* private fields */
}Expand description
Candlestick
Fields§
§close: DecimalClose price
open: DecimalOpen price
low: DecimalLow price
high: DecimalHigh price
volume: i64Volume
turnover: DecimalTurnover
timestamp: OffsetDateTimeTimestamp
trade_session: TradeSessionTrade session
Trait Implementations§
Source§impl CandlestickType for Candlestick
impl CandlestickType for Candlestick
type PriceType = Decimal
type VolumeType = i64
type TurnoverType = Decimal
type TradeSessionType = TradeSession
fn new( components: CandlestickComponents<Self::PriceType, Self::VolumeType, Self::TurnoverType, Self::TradeSessionType>, ) -> Self
fn time(&self) -> OffsetDateTime
fn set_time(&mut self, time: OffsetDateTime)
fn open(&self) -> Self::PriceType
fn set_open(&mut self, open: Self::PriceType)
fn high(&self) -> Self::PriceType
fn set_high(&mut self, high: Self::PriceType)
fn low(&self) -> Self::PriceType
fn set_low(&mut self, low: Self::PriceType)
fn close(&self) -> Self::PriceType
fn set_close(&mut self, close: Self::PriceType)
fn volume(&self) -> Self::VolumeType
fn set_volume(&mut self, volume: Self::VolumeType)
fn turnover(&self) -> Self::TurnoverType
fn set_turnover(&mut self, turnover: Self::TurnoverType)
fn trade_session(&self) -> Self::TradeSessionType
fn set_open_updated(&mut self, updated: bool)
fn open_updated(&self) -> bool
Source§impl Clone for Candlestick
impl Clone for Candlestick
Source§fn clone(&self) -> Candlestick
fn clone(&self) -> Candlestick
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 Candlestick
impl Debug for Candlestick
Source§impl<'de> Deserialize<'de> for Candlestick
impl<'de> Deserialize<'de> for Candlestick
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 Serialize for Candlestick
impl Serialize for Candlestick
Source§impl TryFrom<Candlestick> for Candlestick
impl TryFrom<Candlestick> for Candlestick
impl Copy for Candlestick
Auto Trait Implementations§
impl Freeze for Candlestick
impl RefUnwindSafe for Candlestick
impl Send for Candlestick
impl Sync for Candlestick
impl Unpin for Candlestick
impl UnwindSafe for Candlestick
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