Skip to main content

QuoteType

Trait QuoteType 

Source
pub trait QuoteType {
    type PriceType;
    type VolumeType;
    type TurnoverType;
    type TradeSessionType;

    // Required methods
    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;
}

Required Associated Types§

Required Methods§

Source

fn time(&self) -> OffsetDateTime

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Implementors§