[−][src]Struct yahoo_finance_api::YahooConnector
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]
&'_ self,
ticker: &'_ str,
interval: &'_ str
) -> Result<YResponse, YahooError>
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]
&'_ self,
ticker: &'_ str,
start: DateTime<Utc>,
end: DateTime<Utc>
) -> Result<YResponse, YahooError>
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]
&'_ self,
ticker: &'_ str,
interval: &'_ str,
range: &'_ str
) -> Result<YResponse, YahooError>
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]
&'_ self,
ticker: &'_ str,
start: DateTime<Utc>,
end: DateTime<Utc>,
interval: &'_ str
) -> Result<YResponse, YahooError>
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]
&'_ self,
name: &'_ str
) -> Result<YSearchResult, YahooError>
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]
pub fn default() -> YahooConnector
[src]
Auto Trait Implementations
impl RefUnwindSafe for YahooConnector
impl Send for YahooConnector
impl Sync for YahooConnector
impl Unpin for YahooConnector
impl UnwindSafe for YahooConnector
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>,