AlphaVantageAPIWrapper#
- class langchain_community.utilities.alpha_vantage.AlphaVantageAPIWrapper[source]#
Bases:
BaseModel
Wrapper for AlphaVantage API for Currency Exchange Rate.
Docs for using:
Go to AlphaVantage and sign up for an API key
Save your API KEY into ALPHAVANTAGE_API_KEY env variable
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- param alphavantage_api_key: str | None = None#
- run(from_currency: str, to_currency: str) str [source]#
Get the current exchange rate for a specified currency pair.
- Parameters:
from_currency (str) –
to_currency (str) –
- Return type:
str
- search_symbols(keywords: str) Dict[str, Any] [source]#
Make a request to the AlphaVantage API to search for symbols.
- Parameters:
keywords (str) –
- Return type:
Dict[str, Any]
- property standard_currencies: List[str]#
Examples using AlphaVantageAPIWrapper