Struct alphavantage::Client[][src]

pub struct Client { /* fields omitted */ }

An asynchronous client for the Alpha Vantage API.

Implementations

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 (latest 100 data points).

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

Retrieve intraday time series for the specified symbol updated in realtime (full data set).

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

Retrieve daily time series for the specified symbol (latest 100 data points).

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

Retrieve daily time series for the specified symbol (full data set).

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

Retrieve weekly time series for the specified symbol (latest 100 data points).

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

Retrieve weekly time series for the specified symbol (full data set).

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

Retrieve monthly time series for the specified symbol (latest 100 data points).

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

Retrieve monthly time series for the specified symbol (full data set).

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

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.