Data Sources¶
SQA supports multiple data sources for historical stock price data.
Available Data Sources¶
Alpha Vantage (Primary)¶
Free API with generous limits for historical and real-time data.
Setup:
Features: - Daily historical data - Adjusted closing prices - Up to 20 years of history - API key required (free)
Yahoo Finance (Fallback)¶
Web scraping fallback for when Alpha Vantage is unavailable.
Features: - No API key required - Less reliable (web scraping) - Good for testing
CSV Files (Custom)¶
Import your own data from CSV files.
Format:
Place CSV files in ~/sqa_data/ named as {ticker}.csv.
Data Format¶
SQA uses a standardized column format:
timestamp- Date of trading dayopen_price- Opening pricehigh_price- Highest pricelow_price- Lowest priceclose_price- Closing priceadj_close_price- Adjusted closing pricevolume- Trading volume
Configuration¶
Set data directory in config:
Or via environment: