stock-trek 0.2.6

Stock Trek time-series analysis
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{
    exchange::{Exchange, ExchangeName},
    statistics::stats::Stats,
};
use std::collections::HashMap;

#[derive(Clone)]
pub struct StockTrekContext {
    exchanges: HashMap<ExchangeName, Exchange>,
    pub stats: Stats,
}

impl StockTrekContext {
    pub fn exchanges(&self) -> &HashMap<ExchangeName, Exchange> {
        &self.exchanges
    }
}