Skip to main content

EquityField

Enum EquityField 

Source
#[non_exhaustive]
pub enum EquityField {
Show 92 variants Ticker, CompanyShortName, EodPrice, IntradayPrice, IntradayPriceChange, PercentChange, Lastclose52WkHigh, FiftyTwoWkPctChange, Lastclose52WkLow, IntradayMarketCap, LastcloseMarketCap, Region, Sector, PeerGroup, Industry, Exchange, Beta, AvgDailyVol3M, PctHeldInsider, PctHeldInst, DayVolume, EodVolume, ShortPctSharesOut, ShortInterest, ShortPctFloat, DaysToCover, ShortInterestPctChange, BookValueShare, MarketCapToRevenue, TevToRevenue, PriceBookRatio, PeRatio, PriceTangibleBook, PriceEarnings, PegRatio5Y, ConsecutiveDivYears, Roa, Roe, ForwardDivPerShare, ForwardDivYield, ReturnOnCapital, TevEbit, NetDebtEbitda, TotalDebtEquity, LtDebtEquity, EbitInterestExp, EbitdaInterestExp, TevEbitda, TotalDebtEbitda, QuickRatio, AltmanZScore, CurrentRatio, OcfToCurrentLiab, TotalRevenues, NetIncomeMargin, GrossProfit, Ebitda1YrGrowth, DilutedEpsContOps, QuarterlyRevGrowth, EpsGrowth, NetIncome, Ebitda, DilutedEps1YrGrowth, Revenue1YrGrowth, OperatingIncome, NetIncome1YrGrowth, GrossProfitMargin, EbitdaMargin, Ebit, BasicEpsContOps, NetEpsBasic, NetEpsDiluted, TotalAssets, CommonSharesOut, TotalDebt, TotalEquity, TotalCurrentAssets, CashAndStInvestments, TotalCommonEquity, TotalCurrentLiab, TotalSharesOut, LeveredFcf, Capex, CashFromOps, LeveredFcf1YrGrowth, UnleveredFcf, CashFromOps1YrGrowth, EsgScore, EnvironmentalScore, GovernanceScore, SocialScore, HighestControversy,
}
Expand description

Typed field names for equity custom screener queries.

Variants marked as display-only (Ticker, CompanyShortName) are used in include_fields to request those columns in the response. They do not support meaningful numeric or string filters via Yahoo’s API.

All other variants support filtering via ScreenerFieldExt methods. Categorical fields (Region, Sector, Industry, Exchange, PeerGroup) use eq_str; all others use numeric operators.

§Example

use finance_query::{EquityField, EquityScreenerQuery, ScreenerFieldExt};

let query = EquityScreenerQuery::new()
    .sort_by(EquityField::IntradayMarketCap, false)
    .add_condition(EquityField::Region.eq_str("us"))
    .add_condition(EquityField::PeRatio.between(10.0, 25.0))
    .add_condition(EquityField::AvgDailyVol3M.gt(200_000.0))
    .include_fields(vec![
        EquityField::Ticker,
        EquityField::CompanyShortName,
        EquityField::IntradayPrice,
        EquityField::PeRatio,
    ]);

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Ticker

Ticker symbol — display only, use in include_fields.

§

CompanyShortName

Short company name — display only, use in include_fields.

§

EodPrice

End-of-day price ("eodprice").

§

IntradayPrice

Intraday price ("intradayprice").

§

IntradayPriceChange

Intraday price change ("intradaypricechange").

§

PercentChange

Percent change ("percentchange").

§

Lastclose52WkHigh

Last close 52-week high ("lastclose52weekhigh.lasttwelvemonths").

§

FiftyTwoWkPctChange

52-week percent change ("fiftytwowkpercentchange").

§

Lastclose52WkLow

Last close 52-week low ("lastclose52weeklow.lasttwelvemonths").

§

IntradayMarketCap

Intraday market cap ("intradaymarketcap").

§

LastcloseMarketCap

Last close market cap ("lastclosemarketcap.lasttwelvemonths").

§

Region

Geographic region — use eq_str("us").

§

Sector

GICS sector — use eq_str("Technology") etc.

§

PeerGroup

Peer group ("peer_group").

§

Industry

Industry ("industry").

§

Exchange

Exchange ("exchange").

§

Beta

Beta ("beta").

§

AvgDailyVol3M

3-month average daily volume ("avgdailyvol3m").

§

PctHeldInsider

Percent held by insiders ("pctheldinsider").

§

PctHeldInst

Percent held by institutions ("pctheldinst").

§

DayVolume

Intraday volume ("dayvolume").

§

EodVolume

End-of-day volume ("eodvolume").

§

ShortPctSharesOut

Short percentage of shares outstanding ("short_percentage_of_shares_outstanding.value").

§

ShortInterest

Short interest value ("short_interest.value").

§

ShortPctFloat

Short percentage of float ("short_percentage_of_float.value").

§

DaysToCover

Days to cover short ("days_to_cover_short.value").

§

ShortInterestPctChange

Short interest percent change ("short_interest_percentage_change.value").

§

BookValueShare

Book value per share ("bookvalueshare.lasttwelvemonths").

§

MarketCapToRevenue

Market cap to revenue ("lastclosemarketcaptotalrevenue.lasttwelvemonths").

§

TevToRevenue

TEV to revenue ("lastclosetevtotalrevenue.lasttwelvemonths").

§

PriceBookRatio

Price-to-book ratio ("pricebookratio.quarterly").

§

PeRatio

Trailing twelve months P/E ratio ("peratio.lasttwelvemonths").

§

PriceTangibleBook

Price to tangible book value ("lastclosepricetangiblebookvalue.lasttwelvemonths").

§

PriceEarnings

Price to earnings ("lastclosepriceearnings.lasttwelvemonths").

§

PegRatio5Y

5-year PEG ratio ("pegratio_5y").

§

ConsecutiveDivYears

Consecutive years of dividend growth ("consecutive_years_of_dividend_growth_count").

§

Roa

Return on assets ("returnonassets.lasttwelvemonths").

§

Roe

Return on equity ("returnonequity.lasttwelvemonths").

§

ForwardDivPerShare

Forward dividend per share ("forward_dividend_per_share").

§

ForwardDivYield

Forward dividend yield ("forward_dividend_yield").

§

ReturnOnCapital

Return on total capital ("returnontotalcapital.lasttwelvemonths").

§

TevEbit

TEV / EBIT ("lastclosetevebit.lasttwelvemonths").

§

NetDebtEbitda

Net debt / EBITDA ("netdebtebitda.lasttwelvemonths").

§

TotalDebtEquity

Total debt / equity ("totaldebtequity.lasttwelvemonths").

§

LtDebtEquity

Long-term debt / equity ("ltdebtequity.lasttwelvemonths").

§

EbitInterestExp

EBIT / interest expense ("ebitinterestexpense.lasttwelvemonths").

§

EbitdaInterestExp

EBITDA / interest expense ("ebitdainterestexpense.lasttwelvemonths").

§

TevEbitda

TEV / EBITDA ("lastclosetevebitda.lasttwelvemonths").

§

TotalDebtEbitda

Total debt / EBITDA ("totaldebtebitda.lasttwelvemonths").

§

QuickRatio

Quick ratio ("quickratio.lasttwelvemonths").

§

AltmanZScore

Altman Z-score ("altmanzscoreusingtheaveragestockinformationforaperiod.lasttwelvemonths").

§

CurrentRatio

Current ratio ("currentratio.lasttwelvemonths").

§

OcfToCurrentLiab

Operating cash flow to current liabilities ("operatingcashflowtocurrentliabilities.lasttwelvemonths").

§

TotalRevenues

Total revenues ("totalrevenues.lasttwelvemonths").

§

NetIncomeMargin

Net income margin ("netincomemargin.lasttwelvemonths").

§

GrossProfit

Gross profit ("grossprofit.lasttwelvemonths").

§

Ebitda1YrGrowth

EBITDA 1-year growth ("ebitda1yrgrowth.lasttwelvemonths").

§

DilutedEpsContOps

Diluted EPS from continuing operations ("dilutedepscontinuingoperations.lasttwelvemonths").

§

QuarterlyRevGrowth

Quarterly revenue growth ("quarterlyrevenuegrowth.quarterly").

§

EpsGrowth

EPS growth ("epsgrowth.lasttwelvemonths").

§

NetIncome

Net income ("netincomeis.lasttwelvemonths").

§

Ebitda

EBITDA ("ebitda.lasttwelvemonths").

§

DilutedEps1YrGrowth

Diluted EPS 1-year growth ("dilutedeps1yrgrowth.lasttwelvemonths").

§

Revenue1YrGrowth

Revenue 1-year growth ("totalrevenues1yrgrowth.lasttwelvemonths").

§

OperatingIncome

Operating income ("operatingincome.lasttwelvemonths").

§

NetIncome1YrGrowth

Net income 1-year growth ("netincome1yrgrowth.lasttwelvemonths").

§

GrossProfitMargin

Gross profit margin ("grossprofitmargin.lasttwelvemonths").

§

EbitdaMargin

EBITDA margin ("ebitdamargin.lasttwelvemonths").

§

Ebit

EBIT ("ebit.lasttwelvemonths").

§

BasicEpsContOps

Basic EPS from continuing operations ("basicepscontinuingoperations.lasttwelvemonths").

§

NetEpsBasic

Basic EPS ("netepsbasic.lasttwelvemonths").

§

NetEpsDiluted

Diluted EPS ("netepsdiluted.lasttwelvemonths").

§

TotalAssets

Total assets ("totalassets.lasttwelvemonths").

§

CommonSharesOut

Common shares outstanding ("totalcommonsharesoutstanding.lasttwelvemonths").

§

TotalDebt

Total debt ("totaldebt.lasttwelvemonths").

§

TotalEquity

Total equity ("totalequity.lasttwelvemonths").

§

TotalCurrentAssets

Total current assets ("totalcurrentassets.lasttwelvemonths").

§

CashAndStInvestments

Cash and short-term investments ("totalcashandshortterminvestments.lasttwelvemonths").

§

TotalCommonEquity

Total common equity ("totalcommonequity.lasttwelvemonths").

§

TotalCurrentLiab

Total current liabilities ("totalcurrentliabilities.lasttwelvemonths").

§

TotalSharesOut

Total shares outstanding ("totalsharesoutstanding").

§

LeveredFcf

Levered free cash flow ("leveredfreecashflow.lasttwelvemonths").

§

Capex

Capital expenditure ("capitalexpenditure.lasttwelvemonths").

§

CashFromOps

Cash from operations ("cashfromoperations.lasttwelvemonths").

§

LeveredFcf1YrGrowth

Levered FCF 1-year growth ("leveredfreecashflow1yrgrowth.lasttwelvemonths").

§

UnleveredFcf

Unlevered free cash flow ("unleveredfreecashflow.lasttwelvemonths").

§

CashFromOps1YrGrowth

Cash from operations 1-year growth ("cashfromoperations1yrgrowth.lasttwelvemonths").

§

EsgScore

ESG score ("esg_score").

§

EnvironmentalScore

Environmental score ("environmental_score").

§

GovernanceScore

Governance score ("governance_score").

§

SocialScore

Social score ("social_score").

§

HighestControversy

Highest controversy level ("highest_controversy").

Implementations§

Source§

impl EquityField

Source

pub fn as_str(&self) -> &'static str

Returns the Yahoo Finance API field name string for this variant.

Source

pub fn all() -> &'static [EquityField]

Returns a slice of all EquityField variants.

Useful for validation: EquityField::all().iter().find(|f| f.as_str() == s).

Trait Implementations§

Source§

impl Clone for EquityField

Source§

fn clone(&self) -> EquityField

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EquityField

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromStr for EquityField

Source§

type Err = ()

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for EquityField

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for EquityField

Source§

fn eq(&self, other: &EquityField) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl ScreenerField for EquityField

Source§

fn as_str(&self) -> &'static str

Returns the Yahoo Finance API field name string. Read more
Source§

impl Serialize for EquityField

Source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for EquityField

Source§

impl Eq for EquityField

Source§

impl StructuralPartialEq for EquityField

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Key for T
where T: Clone,

Source§

fn align() -> usize

The alignment necessary for the key. Must return a power of two.
Source§

fn size(&self) -> usize

The size of the key in bytes.
Source§

unsafe fn init(&self, ptr: *mut u8)

Initialize the key in the given memory location. Read more
Source§

unsafe fn get<'a>(ptr: *const u8) -> &'a T

Get a reference to the key from the given memory location. Read more
Source§

unsafe fn drop_in_place(ptr: *mut u8)

Drop the key in place. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ScreenerFieldExt for T
where T: ScreenerField,

Source§

fn gt(self, v: f64) -> QueryCondition<Self>

Filter where this field is greater than v.
Source§

fn lt(self, v: f64) -> QueryCondition<Self>

Filter where this field is less than v.
Source§

fn gte(self, v: f64) -> QueryCondition<Self>

Filter where this field is greater than or equal to v.
Source§

fn lte(self, v: f64) -> QueryCondition<Self>

Filter where this field is less than or equal to v.
Source§

fn eq_num(self, v: f64) -> QueryCondition<Self>

Filter where this field equals the numeric value v.
Source§

fn between(self, min: f64, max: f64) -> QueryCondition<Self>

Filter where this field is between min and max (inclusive).
Source§

fn eq_str(self, v: impl Into<String>) -> QueryCondition<Self>

Filter where this field equals the string value v. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> PlanCallbackArgs for T

Source§

impl<T> PlanCallbackOut for T