yahoo_finance_api icon indicating copy to clipboard operation
yahoo_finance_api copied to clipboard

Add sector and industry data

Open alexkingnz opened this issue 7 months ago • 3 comments

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.

alexkingnz avatar Jul 09 '24 00:07 alexkingnz