get_cik#

static EdgarHelpers.get_cik(ticker=None, search_text=None)[source]#

Helper method to get the CIK (Central Index Key) for a given ticker symbol.

Parameters:
  • ticker (str) – The ticker symbol of the company.

  • search_text (str) – The name of the company to search for.

Returns:

The CIK of the company or a list of CIKs if multiple matches are found.

Return type:

str | List[str]

Raises:

ValueError – If neither ticker nor search_text is provided, or if both are provided.

Example: