[][src]Struct yahoo_finance_api::YahooConnector

pub struct YahooConnector { /* fields omitted */ }

Container for connection parameters to yahoo! finance server

Implementations

impl YahooConnector[src]

pub async fn get_latest_quotes<'_, '_, '_>(
    &'_ self,
    ticker: &'_ str,
    interval: &'_ str
) -> Result<YResponse, YahooError>
[src]

Retrieve the quotes of the last day for the given ticker

pub async fn get_quote_history<'_, '_>(
    &'_ self,
    ticker: &'_ str,
    start: DateTime<Utc>,
    end: DateTime<Utc>
) -> Result<YResponse, YahooError>
[src]

Retrieve the quote history for the given ticker form date start to end (inklusive), if available

pub async fn get_quote_range<'_, '_, '_, '_>(
    &'_ self,
    ticker: &'_ str,
    interval: &'_ str,
    range: &'_ str
) -> Result<YResponse, YahooError>
[src]

Retrieve quotes for the given ticker for an arbitrary range

pub async fn get_quote_history_interval<'_, '_, '_>(
    &'_ self,
    ticker: &'_ str,
    start: DateTime<Utc>,
    end: DateTime<Utc>,
    interval: &'_ str
) -> Result<YResponse, YahooError>
[src]

Retrieve the quote history for the given ticker form date start to end (inklusive), if available; specifying the interval of the ticker.

pub async fn search_ticker<'_, '_>(
    &'_ self,
    name: &'_ str
) -> Result<YSearchResult, YahooError>
[src]

Retrieve the list of quotes found searching a given name

impl YahooConnector[src]

pub fn new() -> YahooConnector[src]

Constructor for a new instance of the yahoo connector.

Trait Implementations

impl Default for YahooConnector[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<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.