pub enum Screener {
Show 15 variants
AggressiveSmallCaps,
DayGainers,
DayLosers,
GrowthTechnologyStocks,
MostActives,
MostShortedStocks,
SmallCapGainers,
UndervaluedGrowthStocks,
UndervaluedLargeCaps,
ConservativeForeignFunds,
HighYieldBond,
PortfolioAnchors,
SolidLargeGrowthFunds,
SolidMidcapGrowthFunds,
TopMutualFunds,
}Expand description
Predefined Yahoo Finance screener selector
Passed to finance::screener() or client.get_screener() to select one of the
15 built-in Yahoo Finance screeners (equity or fund).
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 Screener
impl Screener
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::Screener;
assert_eq!(Screener::parse("most-actives"), Some(Screener::MostActives));
assert_eq!(Screener::parse("day-gainers"), Some(Screener::DayGainers));Sourcepub fn valid_types() -> &'static str
pub fn valid_types() -> &'static str
List all valid screener types for error messages
Trait Implementations§
impl Copy for Screener
impl Eq for Screener
impl StructuralPartialEq for Screener
Auto Trait Implementations§
impl Freeze for Screener
impl RefUnwindSafe for Screener
impl Send for Screener
impl Sync for Screener
impl Unpin for Screener
impl UnsafeUnpin for Screener
impl UnwindSafe for Screener
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