[][src]Struct alphavantage::Client

pub struct Client { /* fields omitted */ }

An asynchronous client for the Alpha Vantage API.

Methods

impl Client[src]

pub fn new(key: &str) -> Client[src]

Create a new client using the specified API key.

pub async fn get_time_series_intraday<'_, '_>(
    &'_ self,
    symbol: &'_ str,
    interval: IntradayInterval
) -> Result<TimeSeries, Error>
[src]

Retrieve intraday time series for the specified symbol updated in realtime.

pub async fn get_time_series_daily<'_, '_>(
    &'_ self,
    symbol: &'_ str
) -> Result<TimeSeries, Error>
[src]

Retrieve daily time series for the specified symbol including up to 20 years of historical data.

pub async fn get_time_series_weekly<'_, '_>(
    &'_ self,
    symbol: &'_ str
) -> Result<TimeSeries, Error>
[src]

Retrieve weekly time series for the specified symbol including up to 20 years of historical data.

pub async fn get_time_series_monthly<'_, '_>(
    &'_ self,
    symbol: &'_ str
) -> Result<TimeSeries, Error>
[src]

Retrieve monthly time series for the specified symbol including up to 20 years of historical data.

pub async fn get_exchange_rate<'_, '_, '_>(
    &'_ self,
    from_currency_code: &'_ str,
    to_currency_code: &'_ str
) -> Result<ExchangeRate, Error>
[src]

Retrieve the exchange rate from the currency specified by from_currency_code to the currency specified by to_currency_code.

Auto Trait Implementations

impl !RefUnwindSafe for Client

impl Send for Client

impl Sync for Client

impl Unpin for Client

impl !UnwindSafe for Client

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, 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.