Companies

Lists of tickers and companies.

calcbench.tickers(SIC_codes=[], index=None, company_identifiers=[], entire_universe=False, NAICS_codes=[])

Get tickers

Parameters
  • SIC_codes (list(int)) – Sequence of SIC (Standard Industrial Classification) codes. eg. [1200, 1300]

  • index (str) – ‘DJIA’ or ‘SP500’

  • entire_universe (bool) – all of the companies in the Calcbench database

  • NAICS_codes (list(int)) – Sequence of NAICS codes

Returns

list of tickers

Return type

list(str)

Usage:

>>> calcbench.tickers(SIC_codes=[1100])
calcbench.companies(SIC_codes=[], index=None, company_identifiers=[], entire_universe=False, include_most_recent_filing_dates=False, NAICS_codes=[])

Return a DataFrame with company details

Parameters
  • SIC_codes (list(int)) – Sequence of SIC (Standard Industrial Classification) codes. eg. [1200, 1300]

  • index (str) – ‘DJIA’ or ‘SP500’

  • entire_universe (bool) – all of the companies in the Calcbench database

  • NAICS_codes (list(int)) – Sequence of NAICS codes

Returns

Dataframe with data about companies

Return type

pandas.Dataframe