Python wrapper for an unofficial Yahoo Finance API. Provides access to stock fundamentals, historical prices, financial data, and more via REST endpoints. Current version: 2.4.1. Release cadence: irregular.
pip install yahooqueryVerified import paths — ran on the pinned version, not inferred.
Create a Ticker object and fetch current price.
Replace .get_historical(period='1y') with .history(period='1y')
Always check for updates and test your scripts regularly.
Insert delays between requests (e.g., time.sleep(1)).
Use `from yahooquery import Ticker`
Check the symbol exists and is active. Wrap calls in try/except or validate with `ticker.summary_profile`
Update yahooquery to latest version. If persists, the ticker may be delisted.