Messtone Devices Enables yfinance Pythonic way: 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:#- 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.institution_holders msft.mutualfund_holders #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 arguments. msft.earnings_dates #show ISIN code – *experimental* #ISIN=International Securities Identification Number msft.isin #show options expirations msft.options #show news msft.news #get options chain for specific expiration opt=msft.option_chain(‘2023-12-12’) #data available via:opt.calls,opt.puts

Leave a comment