pub struct ScreenerQuote {Show 59 fields
pub symbol: String,
pub short_name: String,
pub long_name: Option<String>,
pub display_name: Option<String>,
pub quote_type: String,
pub exchange: String,
pub regular_market_price: FormattedValue<f64>,
pub regular_market_change: FormattedValue<f64>,
pub regular_market_change_percent: FormattedValue<f64>,
pub regular_market_open: Option<FormattedValue<f64>>,
pub regular_market_day_high: Option<FormattedValue<f64>>,
pub regular_market_day_low: Option<FormattedValue<f64>>,
pub regular_market_previous_close: Option<FormattedValue<f64>>,
pub regular_market_time: Option<FormattedValue<i64>>,
pub regular_market_volume: Option<FormattedValue<i64>>,
pub average_daily_volume3_month: Option<FormattedValue<i64>>,
pub average_daily_volume10_day: Option<FormattedValue<i64>>,
pub market_cap: Option<FormattedValue<i64>>,
pub shares_outstanding: Option<FormattedValue<i64>>,
pub fifty_two_week_high: Option<FormattedValue<f64>>,
pub fifty_two_week_low: Option<FormattedValue<f64>>,
pub fifty_two_week_change: Option<FormattedValue<f64>>,
pub fifty_two_week_change_percent: Option<FormattedValue<f64>>,
pub fifty_day_average: Option<FormattedValue<f64>>,
pub fifty_day_average_change: Option<FormattedValue<f64>>,
pub fifty_day_average_change_percent: Option<FormattedValue<f64>>,
pub two_hundred_day_average: Option<FormattedValue<f64>>,
pub two_hundred_day_average_change: Option<FormattedValue<f64>>,
pub two_hundred_day_average_change_percent: Option<FormattedValue<f64>>,
pub average_analyst_rating: Option<String>,
pub trailing_pe: Option<FormattedValue<f64>>,
pub forward_pe: Option<FormattedValue<f64>>,
pub price_to_book: Option<FormattedValue<f64>>,
pub book_value: Option<FormattedValue<f64>>,
pub eps_trailing_twelve_months: Option<FormattedValue<f64>>,
pub eps_forward: Option<FormattedValue<f64>>,
pub eps_current_year: Option<FormattedValue<f64>>,
pub price_eps_current_year: Option<FormattedValue<f64>>,
pub dividend_yield: Option<FormattedValue<f64>>,
pub dividend_rate: Option<FormattedValue<f64>>,
pub dividend_date: Option<FormattedValue<i64>>,
pub trailing_annual_dividend_rate: Option<FormattedValue<f64>>,
pub trailing_annual_dividend_yield: Option<FormattedValue<f64>>,
pub bid: Option<FormattedValue<f64>>,
pub bid_size: Option<FormattedValue<i64>>,
pub ask: Option<FormattedValue<f64>>,
pub ask_size: Option<FormattedValue<i64>>,
pub post_market_price: Option<FormattedValue<f64>>,
pub post_market_change: Option<FormattedValue<f64>>,
pub post_market_change_percent: Option<FormattedValue<f64>>,
pub post_market_time: Option<FormattedValue<i64>>,
pub pre_market_price: Option<FormattedValue<f64>>,
pub pre_market_change: Option<FormattedValue<f64>>,
pub pre_market_change_percent: Option<FormattedValue<f64>>,
pub pre_market_time: Option<FormattedValue<i64>>,
pub earnings_timestamp: Option<FormattedValue<i64>>,
pub earnings_timestamp_start: Option<FormattedValue<i64>>,
pub earnings_timestamp_end: Option<FormattedValue<i64>>,
pub currency: Option<String>,
}Expand description
Quote data from a Yahoo Finance screener
This struct contains the fields returned by Yahoo Finance’s predefined screener endpoint. It includes comprehensive quote data for filtering and displaying screened stocks/funds.
Fields§
§symbol: StringStock symbol (e.g., “NVDA”)
short_name: StringShort display name (e.g., “NVIDIA Corporation”)
long_name: Option<String>Full company name
display_name: Option<String>Display name for UI purposes
quote_type: StringType of quote (e.g., “EQUITY”, “ETF”, “CRYPTOCURRENCY”)
exchange: StringExchange code (e.g., “NMS” for NASDAQ)
regular_market_price: FormattedValue<f64>Current regular market price
regular_market_change: FormattedValue<f64>Change in price from previous close
regular_market_change_percent: FormattedValue<f64>Percent change from previous close
regular_market_open: Option<FormattedValue<f64>>Regular market open price
regular_market_day_high: Option<FormattedValue<f64>>Day’s high price
regular_market_day_low: Option<FormattedValue<f64>>Day’s low price
regular_market_previous_close: Option<FormattedValue<f64>>Previous close price
regular_market_time: Option<FormattedValue<i64>>Regular market timestamp
regular_market_volume: Option<FormattedValue<i64>>Regular market volume (may be None for funds)
average_daily_volume3_month: Option<FormattedValue<i64>>Average daily volume over 3 months
average_daily_volume10_day: Option<FormattedValue<i64>>Average daily volume over 10 days
market_cap: Option<FormattedValue<i64>>Market capitalization
Outstanding shares
fifty_two_week_high: Option<FormattedValue<f64>>52-week high price
fifty_two_week_low: Option<FormattedValue<f64>>52-week low price
fifty_two_week_change: Option<FormattedValue<f64>>Change from 52-week low
fifty_two_week_change_percent: Option<FormattedValue<f64>>Percent change from 52-week low
fifty_day_average: Option<FormattedValue<f64>>50-day moving average
fifty_day_average_change: Option<FormattedValue<f64>>Change from 50-day average
fifty_day_average_change_percent: Option<FormattedValue<f64>>Percent change from 50-day average
two_hundred_day_average: Option<FormattedValue<f64>>200-day moving average
two_hundred_day_average_change: Option<FormattedValue<f64>>Change from 200-day average
two_hundred_day_average_change_percent: Option<FormattedValue<f64>>Percent change from 200-day average
average_analyst_rating: Option<String>Average analyst rating (e.g., “1.3 - Strong Buy”)
trailing_pe: Option<FormattedValue<f64>>Trailing 12-month P/E ratio
forward_pe: Option<FormattedValue<f64>>Forward P/E ratio
price_to_book: Option<FormattedValue<f64>>Price to book ratio
book_value: Option<FormattedValue<f64>>Book value per share
eps_trailing_twelve_months: Option<FormattedValue<f64>>Trailing 12-month EPS
eps_forward: Option<FormattedValue<f64>>Forward EPS
eps_current_year: Option<FormattedValue<f64>>Current year EPS
price_eps_current_year: Option<FormattedValue<f64>>Price to current year EPS
dividend_yield: Option<FormattedValue<f64>>Dividend yield
dividend_rate: Option<FormattedValue<f64>>Dividend rate
dividend_date: Option<FormattedValue<i64>>Ex-dividend date timestamp
trailing_annual_dividend_rate: Option<FormattedValue<f64>>Trailing annual dividend rate
trailing_annual_dividend_yield: Option<FormattedValue<f64>>Trailing annual dividend yield
bid: Option<FormattedValue<f64>>Current bid price
bid_size: Option<FormattedValue<i64>>Bid size
ask: Option<FormattedValue<f64>>Current ask price
ask_size: Option<FormattedValue<i64>>Ask size
post_market_price: Option<FormattedValue<f64>>Post-market price
post_market_change: Option<FormattedValue<f64>>Post-market price change
post_market_change_percent: Option<FormattedValue<f64>>Post-market percent change
post_market_time: Option<FormattedValue<i64>>Post-market timestamp
pre_market_price: Option<FormattedValue<f64>>Pre-market price
pre_market_change: Option<FormattedValue<f64>>Pre-market price change
pre_market_change_percent: Option<FormattedValue<f64>>Pre-market percent change
pre_market_time: Option<FormattedValue<i64>>Pre-market timestamp
earnings_timestamp: Option<FormattedValue<i64>>Earnings timestamp
earnings_timestamp_start: Option<FormattedValue<i64>>Earnings timestamp start
earnings_timestamp_end: Option<FormattedValue<i64>>Earnings timestamp end
currency: Option<String>Currency code (e.g., “USD”)
Implementations§
Source§impl ScreenerQuote
impl ScreenerQuote
Sourcepub fn to_dataframe(&self) -> PolarsResult<DataFrame>
pub fn to_dataframe(&self) -> PolarsResult<DataFrame>
Converts this struct to a single-row polars DataFrame.
All scalar fields are included as columns. Nested objects and complex types are excluded.
This method is auto-generated by the ToDataFrame derive macro.
Sourcepub fn vec_to_dataframe(items: &[Self]) -> PolarsResult<DataFrame>
pub fn vec_to_dataframe(items: &[Self]) -> PolarsResult<DataFrame>
Converts a slice of structs to a multi-row polars DataFrame.
All scalar fields are included as columns. Nested objects and complex types are excluded.
This method is auto-generated by the ToDataFrame derive macro.
Trait Implementations§
Source§impl Clone for ScreenerQuote
impl Clone for ScreenerQuote
Source§fn clone(&self) -> ScreenerQuote
fn clone(&self) -> ScreenerQuote
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ScreenerQuote
impl Debug for ScreenerQuote
Source§impl<'de> Deserialize<'de> for ScreenerQuote
impl<'de> Deserialize<'de> for ScreenerQuote
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ScreenerQuote
impl PartialEq for ScreenerQuote
Source§impl Serialize for ScreenerQuote
impl Serialize for ScreenerQuote
impl StructuralPartialEq for ScreenerQuote
Auto Trait Implementations§
impl Freeze for ScreenerQuote
impl RefUnwindSafe for ScreenerQuote
impl Send for ScreenerQuote
impl Sync for ScreenerQuote
impl Unpin for ScreenerQuote
impl UnwindSafe for ScreenerQuote
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more