import yfinance as yf msft = yf.Ticker("MSFT") # get all stock info msft.info # get historical market data hist = msft.history(period="1mo") # show meta information about the history (requires history() to be called first) msft.history_metadata # show actions (dividends, splits, capital gains) msft.actions msft.dividends msft.splits msft.capital_gains # only for mutual funds & etfs # show share count msft.get_shares_full(start="2022-01-01", end=None) # show financials: msft.calendar msft.sec_filings # - income statement msft.income_stmt msft.quarterly_income_stmt # - balance sheet msft.balance_sheet msft.quarterly_balance_sheet # - cash flow statement msft.cashflow msft.quarterly_cashflow # see `Ticker.get_income_stmt()` for more options # show holders msft.major_holders msft.institutional_holders msft.mutualfund_holders msft.insider_transactions msft.insider_purchases msft.insider_roster_holders msft.sustainability # show recommendations msft.recommendations msft.recommendations_summary msft.upgrades_downgrades # show analysts data msft.analyst_price_targets msft.earnings_estimate msft.revenue_estimate msft.earnings_history msft.eps_trend msft.eps_revisions msft.growth_estimates # Show future and historic earnings dates, returns at most next 4 quarters and last 8 quarters by default. # Note: If more are needed use msft.get_earnings_dates(limit=XX) with increased limit argument. msft.earnings_dates # show ISIN code - *experimental* # ISIN = International Securities Identification Number msft.isin # show options expirations msft.options # show news msft.news # get option chain for specific expiration opt = msft.option_chain('YYYY-MM-DD') # data available via: opt.calls, opt.puts