Core Reference
The Ticker Class
Most of the unofficial Yahoo Finance API is company-centric, so yahooquery models it as a single class. One Ticker instance gives you access to 60+ data modules as properties and methods.
pythonticker.py
from yahooquery import Ticker aapl = Ticker('aapl')
Popular properties
| Property | Returns | Contents |
|---|---|---|
| summary_detail | dict | Price, volume, market cap, day range, dividend yield |
| price | dict | Current price, currency, exchange, market state |
| financial_data | dict | Margins, revenue, cash position, debt |
| key_stats | dict | Valuation ratios, share counts, short interest |
| asset_profile | dict | Company description, officers, sector, website |
| quote_type | dict | Instrument type, exchange, timezone |
| calendar_events | dict | Upcoming earnings and dividend dates |
Popular methods
| Method | What it does |
|---|---|
| history() | OHLCV prices over any period and interval — see Historical Data |
| income_statement() | Quarterly or annual income statements — see Financials |
| balance_sheet() | Balance sheet line items |
| cash_flow() | Cash flow statements |
| news() | Recent news stories for the symbol |
| option_chain() | Full options chain with greeks |
| earnings_history() | Past earnings dates, estimates vs. actuals |
Fetching specific modules
If you know exactly which Yahoo modules you want, request them directly:
pythonmodules.py
aapl.get_modules(['summaryDetail', 'financialData', 'defaultKeyStatistics'])
Tip: every property above also works on a multi-symbol Ticker. See Multiple Symbols.