Struct alphavantage::Client [−][src]
pub struct Client { /* fields omitted */ }
A client for the Alpha Vantage API.
Methods
impl Client
[src]
impl Client
pub fn new(key: &str) -> Client
[src]
pub fn new(key: &str) -> Client
Create a new client using the specified API key
.
pub fn get_time_series_intraday(
&self,
symbol: &str,
interval: IntradayInterval
) -> Result<TimeSeries, Error>
[src]
pub fn get_time_series_intraday(
&self,
symbol: &str,
interval: IntradayInterval
) -> Result<TimeSeries, Error>
Retrieve intraday time series for the specified symbol
updated in realtime.
pub fn get_time_series_daily(&self, symbol: &str) -> Result<TimeSeries, Error>
[src]
pub fn get_time_series_daily(&self, symbol: &str) -> Result<TimeSeries, Error>
Retrieve daily time series for the specified symbol
including up to 20 years of historical data.
pub fn get_time_series_weekly(&self, symbol: &str) -> Result<TimeSeries, Error>
[src]
pub fn get_time_series_weekly(&self, symbol: &str) -> Result<TimeSeries, Error>
Retrieve weekly time series for the specified symbol
including up to 20 years of historical data.
pub fn get_time_series_montly(&self, symbol: &str) -> Result<TimeSeries, Error>
[src]
pub fn get_time_series_montly(&self, symbol: &str) -> Result<TimeSeries, Error>
Retrieve montly time series for the specified symbol
including up to 20 years of historical data.
pub fn get_exchange_rate(
&self,
from_currency_code: &str,
to_currency_code: &str
) -> Result<ExchangeRate, Error>
[src]
pub fn get_exchange_rate(
&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
.