pub enum ScreenerType {
Show 15 variants
AggressiveSmallCaps,
DayGainers,
DayLosers,
GrowthTechnologyStocks,
MostActives,
MostShortedStocks,
SmallCapGainers,
UndervaluedGrowthStocks,
UndervaluedLargeCaps,
ConservativeForeignFunds,
HighYieldBond,
PortfolioAnchors,
SolidLargeGrowthFunds,
SolidMidcapGrowthFunds,
TopMutualFunds,
}Expand description
Enum of all predefined Yahoo Finance screeners
These map to Yahoo Finance’s predefined screener IDs and can be used to fetch filtered stock/fund lists based on various criteria.
Variants§
AggressiveSmallCaps
Small caps with high EPS growth, sorted by volume
DayGainers
Top gaining stocks (>3% change, >$2B market cap)
DayLosers
Top losing stocks (<-2.5% change, >$2B market cap)
GrowthTechnologyStocks
Tech stocks with 25%+ revenue and EPS growth
MostActives
Most actively traded stocks by volume
MostShortedStocks
Stocks with highest short interest percentage
SmallCapGainers
Small cap gainers (<$2B market cap)
UndervaluedGrowthStocks
Low P/E (<20), low PEG (<1), high EPS growth (25%+)
UndervaluedLargeCaps
Large caps ($10B-$100B) with low P/E and PEG
ConservativeForeignFunds
Low-risk foreign large cap funds (4-5 star rated)
HighYieldBond
High yield bond funds (4-5 star rated)
PortfolioAnchors
Large blend core funds (4-5 star rated)
SolidLargeGrowthFunds
Large growth funds (4-5 star rated)
SolidMidcapGrowthFunds
Mid-cap growth funds (4-5 star rated)
TopMutualFunds
Top performing mutual funds by percent change
Implementations§
Source§impl ScreenerType
impl ScreenerType
Sourcepub fn as_scr_id(&self) -> &'static str
pub fn as_scr_id(&self) -> &'static str
Convert to Yahoo Finance scrId parameter value (SCREAMING_SNAKE_CASE)
Sourcepub fn parse(s: &str) -> Option<Self>
pub fn parse(s: &str) -> Option<Self>
Parse from string, returns None on invalid input
§Example
use finance_query::ScreenerType;
assert_eq!(ScreenerType::parse("most-actives"), Some(ScreenerType::MostActives));
assert_eq!(ScreenerType::parse("day-gainers"), Some(ScreenerType::DayGainers));Sourcepub fn valid_types() -> &'static str
pub fn valid_types() -> &'static str
List all valid screener types for error messages
Sourcepub fn all() -> &'static [ScreenerType]
pub fn all() -> &'static [ScreenerType]
Get all screener types as an array
Trait Implementations§
Source§impl Clone for ScreenerType
impl Clone for ScreenerType
Source§fn clone(&self) -> ScreenerType
fn clone(&self) -> ScreenerType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ScreenerType
impl Debug for ScreenerType
Source§impl FromStr for ScreenerType
impl FromStr for ScreenerType
Source§impl Hash for ScreenerType
impl Hash for ScreenerType
Source§impl PartialEq for ScreenerType
impl PartialEq for ScreenerType
impl Copy for ScreenerType
impl Eq for ScreenerType
impl StructuralPartialEq for ScreenerType
Auto Trait Implementations§
impl Freeze for ScreenerType
impl RefUnwindSafe for ScreenerType
impl Send for ScreenerType
impl Sync for ScreenerType
impl Unpin for ScreenerType
impl UnwindSafe for ScreenerType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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