YQL has different companies that are listed under an industry:
e.g. select * from yahoo.finance.industry where id="112"
Is there a way to query the table for a ticker symbol and find out to which industry the company belongs?
Quantitative Finance Stack Exchange is a question and answer site for finance professionals and academics. It only takes a minute to sign up.
Sign up to join this communityYQL has different companies that are listed under an industry:
e.g. select * from yahoo.finance.industry where id="112"
Is there a way to query the table for a ticker symbol and find out to which industry the company belongs?
the package pandas_finance does the job :-)
from pandas_finance import Equity
aapl = Equity('AAPL')
aapl.industry