[][src]Struct gurufocus_api::GuruFocusConnector

pub struct GuruFocusConnector { /* fields omitted */ }

Container for connection parameters to gurufocus server.

Methods

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 fn get_financials(&self, stock: &str) -> Result<Value, String>[src]

Returns the full history of financial data for stock symbol given as argument

pub fn get_key_ratios(&self, stock: &str) -> Result<Value, String>[src]

Returns the current key statistic figures for stock symbol given as argument

pub 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 fn get_price_hist(&self, stock: &str) -> Result<Value, String>[src]

Returns the history of (adjusted) quoted prices for symbol given as argument

pub 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 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 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 fn get_insider_trades(&self, stock: &str) -> Result<Value, String>[src]

Returns real-time insider trades for symbol given as argument

pub fn get_gurus(&self) -> Result<Value, String>[src]

Returns lists of all and personalized gurus

pub fn get_guru_picks(
    &self,
    gurus: &[&str],
    start_date: NaiveDate
) -> Result<Value, String>
[src]

Returns list of gurus stock picks using list of guru ids since a given start date.

pub fn get_guru_portfolios(&self, gurus: &[&str]) -> Result<Value, String>[src]

Returns list of aggregated guru portfolios given a slice of guru ids

pub fn get_exchanges(&self) -> Result<Value, String>[src]

Returns list of supported exchanges

pub fn get_listed_stocks(&self, exchange: &str) -> Result<Value, String>[src]

Returns list of all stocks of a particular exchange

pub fn get_insider_updates(&self) -> Result<Value, String>[src]

Returns list of latest insider trades ordered by insider transctions time

pub fn get_dividend_history(&self, stock: &str) -> Result<Value, String>[src]

Returns 30 years dividend history data of a stock

pub fn get_analyst_estimate(&self, stock: &str) -> Result<Value, String>[src]

Returns analyst estimate data of a stock

pub fn get_personal_portfolio(&self) -> Result<Value, String>[src]

Returns list of personal portfolios

pub 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

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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