Skip to main content

CandlestickType

Trait CandlestickType 

Source
pub trait CandlestickType {
    type PriceType;
    type VolumeType;
    type TurnoverType;
    type TradeSessionType: TradeSessionType;

Show 18 methods // Required methods 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, open_updated: bool); fn open_updated(&self) -> bool;
}

Required Associated Types§

Required Methods§

Source

fn new( components: CandlestickComponents<Self::PriceType, Self::VolumeType, Self::TurnoverType, Self::TradeSessionType>, ) -> Self

Source

fn time(&self) -> OffsetDateTime

Source

fn set_time(&mut self, time: OffsetDateTime)

Source

fn open(&self) -> Self::PriceType

Source

fn set_open(&mut self, open: Self::PriceType)

Source

fn high(&self) -> Self::PriceType

Source

fn set_high(&mut self, high: Self::PriceType)

Source

fn low(&self) -> Self::PriceType

Source

fn set_low(&mut self, low: Self::PriceType)

Source

fn close(&self) -> Self::PriceType

Source

fn set_close(&mut self, close: Self::PriceType)

Source

fn volume(&self) -> Self::VolumeType

Source

fn set_volume(&mut self, volume: Self::VolumeType)

Source

fn turnover(&self) -> Self::TurnoverType

Source

fn set_turnover(&mut self, turnover: Self::TurnoverType)

Source

fn trade_session(&self) -> Self::TradeSessionType

Source

fn set_open_updated(&mut self, open_updated: bool)

Source

fn open_updated(&self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§