Alpha Vantage Alpha Vantage provides realtime and historical financial market data through a set of powerful and developer-friendly data APIs and spreadsheets.Generate the
ALPHAVANTAGE_API_KEY
at their website
.
Use the AlphaVantageAPIWrapper
to get currency exchange rates.
_get_time_series_daily
method returns the date, daily open, daily high, daily low, daily close, and daily volume of the global equity specified, covering the 100 latest data points.
_get_time_series_weekly
method returns the last trading day of the week, weekly open, weekly high, weekly low, weekly close, and weekly volume of the global equity specified, covering 20+ years of historical data.
_get_quote_endpoint
method is a lightweight alternative to the time series APIs and returns the latest price and volume info for the specified symbol.
search_symbol
method returns a list of symbols and the matching company information based on the text entered.
_get_market_news_sentiment
method returns live and historical market news sentiment for a given asset.
_get_top_gainers_losers
method returns the top 20 gainers, losers and most active stocks in the US market.
run
method of the wrapper takes the following parameters: from_currency, to_currency.
It Gets the currency exchange rates for the given currency pair.