pub struct KeyStatistics {Show 13 fields
pub as_of: Option<DateTime<Utc>>,
pub market_cap: Option<Money>,
pub shares_outstanding: Option<u64>,
pub eps_trailing_twelve_months: Option<Price>,
pub pe_trailing_twelve_months: Option<Decimal>,
pub dividend_per_share_forward: Option<Price>,
pub dividend_yield_trailing: Option<Decimal>,
pub dividend_yield_forward: Option<Decimal>,
pub ex_dividend_date: Option<NaiveDate>,
pub fifty_two_week_high: Option<Price>,
pub fifty_two_week_low: Option<Price>,
pub average_daily_volume_3m: Option<u64>,
pub beta: Option<Decimal>,
}Expand description
Slow-moving valuation, dividend, and risk metrics for an instrument.
All fields are optional because providers expose different subsets and some metrics are undefined for certain asset classes (e.g. dividend yield on a non-dividend-paying stock).
Fields§
§as_of: Option<DateTime<Utc>>Timestamp at which these statistics were observed. Useful when
snapshotting price-driven values like market_cap that move
intraday.
market_cap: Option<Money>Market capitalisation (price × shares outstanding).
Shares outstanding.
eps_trailing_twelve_months: Option<Price>Earnings per share over the trailing twelve months.
pe_trailing_twelve_months: Option<Decimal>Price-to-earnings ratio computed against trailing-twelve-month EPS.
Forward (declared / expected) dividend per share.
dividend_yield_trailing: Option<Decimal>Trailing twelve-month dividend yield expressed as a fraction (e.g. 0.025 for 2.5%).
dividend_yield_forward: Option<Decimal>Forward dividend yield expressed as a fraction.
ex_dividend_date: Option<NaiveDate>Next or most recent ex-dividend calendar date.
fifty_two_week_high: Option<Price>52-week high price.
fifty_two_week_low: Option<Price>52-week low price.
average_daily_volume_3m: Option<u64>Average daily traded volume over the last three months.
beta: Option<Decimal>Market beta. The calculation period and frequency are not standardised across providers (Yahoo uses 5y monthly; Bloomberg is configurable); consumers comparing values across sources should account for this.
Trait Implementations§
Source§impl Clone for KeyStatistics
impl Clone for KeyStatistics
Source§fn clone(&self) -> KeyStatistics
fn clone(&self) -> KeyStatistics
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Columnar for KeyStatistics
impl Columnar for KeyStatistics
Source§fn columnar_to_dataframe(
items: &[KeyStatistics],
) -> Result<DataFrame, PolarsError>
fn columnar_to_dataframe( items: &[KeyStatistics], ) -> Result<DataFrame, PolarsError>
Source§fn columnar_from_refs(
items: &[&KeyStatistics],
) -> Result<DataFrame, PolarsError>
fn columnar_from_refs( items: &[&KeyStatistics], ) -> Result<DataFrame, PolarsError>
Source§impl Debug for KeyStatistics
impl Debug for KeyStatistics
Source§impl Default for KeyStatistics
impl Default for KeyStatistics
Source§fn default() -> KeyStatistics
fn default() -> KeyStatistics
Source§impl<'de> Deserialize<'de> for KeyStatistics
impl<'de> Deserialize<'de> for KeyStatistics
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<KeyStatistics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<KeyStatistics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for KeyStatistics
Source§impl PartialEq for KeyStatistics
impl PartialEq for KeyStatistics
Source§impl Serialize for KeyStatistics
impl Serialize for KeyStatistics
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for KeyStatistics
Source§impl ToDataFrame for KeyStatistics
impl ToDataFrame for KeyStatistics
Source§fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
Source§fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
Auto Trait Implementations§
impl Freeze for KeyStatistics
impl RefUnwindSafe for KeyStatistics
impl Send for KeyStatistics
impl Sync for KeyStatistics
impl Unpin for KeyStatistics
impl UnsafeUnpin for KeyStatistics
impl UnwindSafe for KeyStatistics
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.impl<T> ErasedDestructor for Twhere
T: 'static,
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