alpha_vantage wraps the Alpha Vantage HTTP API for stocks, cryptocurrencies, forex, and indicators. Responses can be returned as JSON, pandas DataFrames, or CSV where supported.
Overview
This module implements a Python interface to the Alpha Vantage financial data API, which supplies exchange rates, equity quotes, crypto prices, and technical indicators in JSON or pandas-friendly structures. Access requires a free API key from Alpha Vantage or an optional RapidAPI key configuration.
Classes group endpoints for time series, technical indicators, cryptocurrencies, and foreign exchange. Callers choose output_format to receive dictionaries, pandas tables, or CSV when the endpoint allows. Optional retries help with transient connection issues.
Newer releases add fundamentals and extended intraday coverage plus asyncio helpers for concurrent symbol queries on supported Python versions. Pandas remains an optional dependency for plotting examples such as intraday charts, Bollinger Bands, or BTC price series.
The library does not host market data itself; every call reaches Alpha Vantage’s remote service using the caller’s credentials.
Key features
- Stock time series queries
- Technical indicator helpers
- Cryptocurrency quotes
- Forex rate lookups
- Pandas output option
- Asyncio batch fetching
- Configurable retry count
Use cases
- Pulling free market quotes in Python
- Charting indicators with pandas
- Concurrent symbol data fetching