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 cached_bar_symbols: usize,
13 pub stocks_updated_at: Option<String>,
14 pub options_updated_at: Option<String>,
15 pub bars_updated_at: HashMap<String, String>,
16}