stock-trek 0.2.0

Stock Trek time-series analysis
Documentation
use crate::data::{market_data::raw_market_quote::RawMarketQuote, timestamp::TimestampMillis};

#[derive(Debug, Clone)]
pub struct RawMarketTick {
    timestamp_millis: TimestampMillis,
    bid: RawMarketQuote,
    ask: RawMarketQuote,
    last: RawMarketQuote,
}

impl RawMarketTick {
    pub fn timestamp_millis(&self) -> TimestampMillis {
        self.timestamp_millis
    }
    pub fn bid(&self) -> &RawMarketQuote {
        &self.bid
    }
    pub fn ask(&self) -> &RawMarketQuote {
        &self.ask
    }
    pub fn last(&self) -> &RawMarketQuote {
        &self.last
    }
}