use serde::{Deserialize, Serialize};
use crate::types::{
CountryCode, ExchangeCode, Industry, MarketCapitalization, PerShareAmount, Price, Ratio,
Sector, Ticker, Volume,
};
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
#[serde(rename_all = "camelCase")]
pub struct CompanyScreenerResult {
pub symbol: Ticker,
pub company_name: String,
#[serde(serialize_with = "crate::codecs::integral_f64::serialize")]
pub market_cap: MarketCapitalization,
pub sector: Sector,
pub industry: Industry,
#[serde(serialize_with = "crate::codecs::integral_f64::serialize")]
pub beta: Ratio,
pub price: Price,
#[serde(serialize_with = "crate::codecs::integral_f64::serialize")]
pub last_annual_dividend: PerShareAmount,
#[serde(serialize_with = "crate::codecs::integral_f64::serialize")]
pub volume: Volume,
pub exchange: String,
pub exchange_short_name: ExchangeCode,
pub country: CountryCode,
pub is_etf: bool,
pub is_fund: bool,
pub is_actively_trading: bool,
}