pub struct FundamentalContext(/* private fields */);Expand description
Fundamental data context — financial reports, analyst ratings, dividends, valuation, company overview and more.
Implementations§
Source§impl FundamentalContext
impl FundamentalContext
Sourcepub fn new(config: Arc<Config>) -> Self
pub fn new(config: Arc<Config>) -> Self
Create a FundamentalContext
Sourcepub fn log_subscriber(&self) -> Arc<dyn Subscriber + Send + Sync>
pub fn log_subscriber(&self) -> Arc<dyn Subscriber + Send + Sync>
Returns the log subscriber
Sourcepub async fn financial_report(
&self,
symbol: impl Into<String>,
kind: FinancialReportKind,
period: Option<FinancialReportPeriod>,
) -> Result<FinancialReports>
pub async fn financial_report( &self, symbol: impl Into<String>, kind: FinancialReportKind, period: Option<FinancialReportPeriod>, ) -> Result<FinancialReports>
Get financial reports for a security.
Path: GET /v1/quote/financial-reports
Sourcepub async fn institution_rating(
&self,
symbol: impl Into<String>,
) -> Result<InstitutionRating>
pub async fn institution_rating( &self, symbol: impl Into<String>, ) -> Result<InstitutionRating>
Get analyst ratings for a security (combines latest + historical).
Path: GET /v1/quote/institution-rating-latest +
GET /v1/quote/institution-ratings
Sourcepub async fn institution_rating_detail(
&self,
symbol: impl Into<String>,
) -> Result<InstitutionRatingDetail>
pub async fn institution_rating_detail( &self, symbol: impl Into<String>, ) -> Result<InstitutionRatingDetail>
Get historical analyst rating details for a security.
Path: GET /v1/quote/institution-ratings/detail
Sourcepub async fn dividend(&self, symbol: impl Into<String>) -> Result<DividendList>
pub async fn dividend(&self, symbol: impl Into<String>) -> Result<DividendList>
Get dividend history for a security.
Path: GET /v1/quote/dividends
Sourcepub async fn dividend_detail(
&self,
symbol: impl Into<String>,
) -> Result<DividendList>
pub async fn dividend_detail( &self, symbol: impl Into<String>, ) -> Result<DividendList>
Get detailed dividend information for a security.
Path: GET /v1/quote/dividends/details
Sourcepub async fn forecast_eps(
&self,
symbol: impl Into<String>,
) -> Result<ForecastEps>
pub async fn forecast_eps( &self, symbol: impl Into<String>, ) -> Result<ForecastEps>
Get EPS forecasts for a security.
Path: GET /v1/quote/forecast-eps
Sourcepub async fn consensus(
&self,
symbol: impl Into<String>,
) -> Result<FinancialConsensus>
pub async fn consensus( &self, symbol: impl Into<String>, ) -> Result<FinancialConsensus>
Get financial consensus estimates for a security.
Path: GET /v1/quote/financial-consensus-detail
Sourcepub async fn valuation(
&self,
symbol: impl Into<String>,
) -> Result<ValuationData>
pub async fn valuation( &self, symbol: impl Into<String>, ) -> Result<ValuationData>
Get valuation metrics (PE/PB/PS/dividend yield) for a security.
Path: GET /v1/quote/valuation
Sourcepub async fn valuation_history(
&self,
symbol: impl Into<String>,
) -> Result<ValuationHistoryResponse>
pub async fn valuation_history( &self, symbol: impl Into<String>, ) -> Result<ValuationHistoryResponse>
Get historical valuation data for a security.
Path: GET /v1/quote/valuation/detail
Sourcepub async fn industry_valuation(
&self,
symbol: impl Into<String>,
) -> Result<IndustryValuationList>
pub async fn industry_valuation( &self, symbol: impl Into<String>, ) -> Result<IndustryValuationList>
Get valuation comparison against industry peers.
Path: GET /v1/quote/industry-valuation-comparison
Sourcepub async fn industry_valuation_dist(
&self,
symbol: impl Into<String>,
) -> Result<IndustryValuationDist>
pub async fn industry_valuation_dist( &self, symbol: impl Into<String>, ) -> Result<IndustryValuationDist>
Get valuation distribution within the industry.
Path: GET /v1/quote/industry-valuation-distribution
Sourcepub async fn company(
&self,
symbol: impl Into<String>,
) -> Result<CompanyOverview>
pub async fn company( &self, symbol: impl Into<String>, ) -> Result<CompanyOverview>
Get company overview information.
Path: GET /v1/quote/comp-overview
Sourcepub async fn executive(
&self,
symbol: impl Into<String>,
) -> Result<ExecutiveList>
pub async fn executive( &self, symbol: impl Into<String>, ) -> Result<ExecutiveList>
Get executive and board member information.
Path: GET /v1/quote/company-professionals
Get major shareholders for a security.
Path: GET /v1/quote/shareholders
Sourcepub async fn fund_holder(
&self,
symbol: impl Into<String>,
) -> Result<FundHolders>
pub async fn fund_holder( &self, symbol: impl Into<String>, ) -> Result<FundHolders>
Get funds and ETFs that hold a security.
Path: GET /v1/quote/fund-holders
Sourcepub async fn corp_action(
&self,
symbol: impl Into<String>,
) -> Result<CorpActions>
pub async fn corp_action( &self, symbol: impl Into<String>, ) -> Result<CorpActions>
Get corporate actions (dividends, splits, buybacks, etc.).
Path: GET /v1/quote/company-act
Sourcepub async fn invest_relation(
&self,
symbol: impl Into<String>,
) -> Result<InvestRelations>
pub async fn invest_relation( &self, symbol: impl Into<String>, ) -> Result<InvestRelations>
Get investor relations / investment holdings.
Path: GET /v1/quote/invest-relations
Sourcepub async fn operating(
&self,
symbol: impl Into<String>,
) -> Result<OperatingList>
pub async fn operating( &self, symbol: impl Into<String>, ) -> Result<OperatingList>
Get operating metrics and financial report summaries.
Path: GET /v1/quote/operatings
Trait Implementations§
Source§impl Clone for FundamentalContext
impl Clone for FundamentalContext
Source§fn clone(&self) -> FundamentalContext
fn clone(&self) -> FundamentalContext
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for FundamentalContext
impl !RefUnwindSafe for FundamentalContext
impl Send for FundamentalContext
impl Sync for FundamentalContext
impl Unpin for FundamentalContext
impl UnsafeUnpin for FundamentalContext
impl !UnwindSafe for FundamentalContext
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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