Struct alphavantage::Client [−][src]
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]
&self,
symbol: &str,
interval: IntradayInterval
) -> Result<TimeSeries, Error>
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]
&self,
symbol: &str,
interval: IntradayInterval
) -> Result<TimeSeries, Error>
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]
&self,
symbol: &str
) -> Result<TimeSeries, Error>
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]
&self,
symbol: &str
) -> Result<TimeSeries, Error>
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]
&self,
symbol: &str
) -> Result<TimeSeries, Error>
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]
&self,
symbol: &str
) -> Result<TimeSeries, Error>
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]
&self,
symbol: &str
) -> Result<TimeSeries, Error>
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]
&self,
symbol: &str
) -> Result<TimeSeries, Error>
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]
&self,
from_currency_code: &str,
to_currency_code: &str
) -> Result<ExchangeRate, Error>
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
[src]
impl Send for Client
[src]
impl Sync for Client
[src]
impl Unpin for Client
[src]
impl !UnwindSafe for Client
[src]
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>,