[−][src]Struct alphavantage::Client
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]
&'_ self,
symbol: &'_ str,
interval: IntradayInterval
) -> Result<TimeSeries, Error>
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]
&'_ self,
symbol: &'_ str
) -> Result<TimeSeries, Error>
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]
&'_ self,
symbol: &'_ str
) -> Result<TimeSeries, Error>
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]
&'_ self,
symbol: &'_ str
) -> Result<TimeSeries, Error>
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]
&'_ 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
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]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[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.
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>,