yfinance
Ran Aroussi
π‘ Pick it for a free, lightweight Python library focused on Yahoo Finance market data.
yfinance is an open-source Python library that retrieves Yahoo Finance market data for analysis and research. It is mainly used by individual...
Pros
- No paid API subscription is required for common research use
- Convenient Python interface for prices, statements, dividends, and options
- Excellent for notebooks, teaching, and rapid quantitative prototypes
Cons
- Unofficial data access can be less stable than a commercial API
- No guaranteed service-level agreement or production support
- Rate limits, missing fields, and historical inconsistencies require defensive coding
Free, open source