[−][src]Struct gurufocus_api::GuruFocusConnector
Container for connection parameters to gurufocus server.
Implementations
impl GuruFocusConnector
[src]
pub fn new(token: String) -> GuruFocusConnector
[src]
Constructor for a new instance of GuruFocusConnector. token is the user token you get from gurufocus if you subscribe for a premium or premium plus account.
pub async fn get_financials(&self, stock: &str) -> Result<Value, String>
[src]
Returns the full history of financial data for stock symbol given as argument
pub async fn get_key_ratios(&self, stock: &str) -> Result<Value, String>
[src]
Returns the current key statistic figures for stock symbol given as argument
pub async fn get_quotes(&self, stocks: &[&str]) -> Result<Value, String>
[src]
Returns the current quote data of a comma separated list of symbols given as argument
pub async fn get_price_hist(&self, stock: &str) -> Result<Value, String>
[src]
Returns the history of (adjusted) quoted prices for symbol given as argument
pub async fn get_unadj_price_hist(&self, stock: &str) -> Result<Value, String>
[src]
Returns the history of (unadjusted) quoted prices for symbol given as argument
pub async fn get_stock_summary(&self, stock: &str) -> Result<Value, String>
[src]
Returns companies current price, valuation rations and ranks for symbol given as argument
pub async fn get_guru_trades(&self, stock: &str) -> Result<Value, String>
[src]
Returns real-time guru trades and holding data for symbol given as argument
pub async fn get_insider_trades(&self, stock: &str) -> Result<Value, String>
[src]
Returns real-time insider trades for symbol given as argument
pub async fn get_gurus(&self) -> Result<Value, String>
[src]
Returns lists of all and personalized gurus
pub async fn get_guru_picks(
&self,
gurus: &[&str],
start_date: NaiveDate
) -> Result<Value, String>
[src]
&self,
gurus: &[&str],
start_date: NaiveDate
) -> Result<Value, String>
Returns list of gurus stock picks using list of guru ids since a given start date.
pub async fn get_guru_portfolios(&self, gurus: &[&str]) -> Result<Value, String>
[src]
Returns list of aggregated guru portfolios given a slice of guru ids
pub async fn get_exchanges(&self) -> Result<Value, String>
[src]
Returns list of supported exchanges
pub async fn get_listed_stocks(&self, exchange: &str) -> Result<Value, String>
[src]
Returns list of all stocks of a particular exchange
pub async fn get_insider_updates(&self) -> Result<Value, String>
[src]
Returns list of latest insider trades ordered by insider transctions time
pub async fn get_dividend_history(&self, stock: &str) -> Result<Value, String>
[src]
Returns 30 years dividend history data of a stock
pub async fn get_analyst_estimate(&self, stock: &str) -> Result<Value, String>
[src]
Returns analyst estimate data of a stock
pub async fn get_personal_portfolio(&self) -> Result<Value, String>
[src]
Returns list of personal portfolios
pub async fn get_updated_stocks(&self, date: NaiveDate) -> Result<Value, String>
[src]
Returns list of all stocks with updated fundamental data within a week of the given date
Auto Trait Implementations
impl RefUnwindSafe for GuruFocusConnector
[src]
impl Send for GuruFocusConnector
[src]
impl Sync for GuruFocusConnector
[src]
impl Unpin for GuruFocusConnector
[src]
impl UnwindSafe for GuruFocusConnector
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,