yahoo_finance_api
yahoo_finance_api copied to clipboard
Add sector and industry data
Ho do I get Sector and Industry information on a stock? Normally displayed on a stock's profile page on Yahoo Finance. e.g. in python (yfinance) it would be:
import yfinance
tickerdata = yfinance.Ticker('IFT.NZ')
s = tickerdata.info['sector']
i = tickerdata.info['industry']
I was hoping that some query would result in a HashMap with this kind of data, but I haven't found it yet.
This would be a good addition if it doesn't exist.