use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[non_exhaustive]
pub struct PriceTargetConsensus {
pub symbol: Option<String>,
pub target_high: Option<f64>,
pub target_low: Option<f64>,
pub target_consensus: Option<f64>,
pub target_median: Option<f64>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[non_exhaustive]
pub struct PriceTargetSummary {
pub symbol: Option<String>,
pub last_month_count: Option<i64>,
pub last_month_avg: Option<f64>,
pub last_quarter_count: Option<i64>,
pub last_quarter_avg: Option<f64>,
pub last_year_count: Option<i64>,
pub last_year_avg: Option<f64>,
pub all_time_count: Option<i64>,
pub all_time_avg: Option<f64>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[non_exhaustive]
pub struct RatingConsensus {
pub symbol: Option<String>,
pub strong_buy: Option<i64>,
pub buy: Option<i64>,
pub hold: Option<i64>,
pub sell: Option<i64>,
pub strong_sell: Option<i64>,
pub consensus: Option<String>,
}