use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[non_exhaustive]
pub enum MoverDirection {
Gainers,
Losers,
MostActive,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[non_exhaustive]
pub struct SectorPerformance {
pub sector: String,
pub exchange: Option<String>,
pub change_percent: Option<f64>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[non_exhaustive]
pub struct SectorPerformanceHistory {
pub date: Option<String>,
pub sectors: Vec<SectorPerformance>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[non_exhaustive]
pub struct SectorPe {
pub sector: String,
pub exchange: Option<String>,
pub pe: Option<f64>,
pub date: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[non_exhaustive]
pub struct IndustryPe {
pub industry: String,
pub exchange: Option<String>,
pub pe: Option<f64>,
pub date: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[non_exhaustive]
pub struct MoverQuote {
pub symbol: String,
pub name: Option<String>,
pub price: Option<f64>,
pub change: Option<f64>,
pub change_percent: Option<f64>,
pub exchange: Option<String>,
}