Alpha Vantage¶
Alpha Vantage provides financial data with best-in-class technical indicator coverage (50+ indicators), plus economic indicators, forex, crypto, and commodities. Free tier: 25 requests per day.
Setup¶
Set the API key via environment variable:
No manual init call needed — the provider reads the key during TickerBuilder::build().
Usage¶
use finance_query::{Capability, Fetch, Provider, Providers, Raw};
let providers = Providers::builder()
.route(Capability::QUOTE, &[Provider::AlphaVantage, Provider::Yahoo])
.fetch(Fetch::Sequential)
.build()
.await?;
let ticker = providers.ticker("AAPL").build().await?;
let quote = ticker.quote::<Raw>().await?;
Capabilities¶
| Data type | Support |
|---|---|
| Quote | ✓ |
| Chart | ✓ |
| Fundamentals | ✓ |
| Corporate | ✓ |
| Options | ✓ |
| Market | — |
| Discovery | — |
| Indices | — |
| Commodities | ✓ |
| Forex | ✓ |
| Crypto | ✓ |
| Futures | — |
| Technicals | ✓ |
| Economic | ✓ |
| Filings | — |
| Sentiment | — |
See Also¶
- Multi-Provider Architecture — Provider configuration and strategies
- Ticker API — Single-symbol data access