Skip to main content

alpaca_data/cache/
stats.rs

1use std::collections::HashMap;
2
3use serde::Serialize;
4
5#[derive(Debug, Clone, Default, Serialize)]
6pub struct CacheStats {
7    pub subscribed_symbols: usize,
8    pub subscribed_contracts: usize,
9    pub subscribed_bar_requests: usize,
10    pub cached_stocks: usize,
11    pub cached_options: usize,
12    pub unavailable_stocks: usize,
13    pub unavailable_options: usize,
14    pub cached_bar_symbols: usize,
15    pub stocks_updated_at: Option<String>,
16    pub options_updated_at: Option<String>,
17    pub bars_updated_at: HashMap<String, String>,
18}