Liking cljdoc? Tell your friends :D

edgar.company


cik->tickerclj

(cik->ticker cik)

Reverse lookup: CIK integer or string → ticker symbol. For a CIK with several share classes the primary (lowest-ranked) listing in company_tickers.json is returned, e.g. 1652044 → "GOOGL". Returns nil if the CIK has no ticker.

Reverse lookup: CIK integer or string → ticker symbol.
For a CIK with several share classes the primary (lowest-ranked) listing
in company_tickers.json is returned, e.g. 1652044 → "GOOGL".
Returns nil if the CIK has no ticker.
sourceraw docstring

clear-ticker-cache!clj

(clear-ticker-cache!)

Clear the cached ticker maps so the next lookup refetches company_tickers.json — long-running processes pick up new listings. Also run automatically by edgar.core/clear-cache!.

Clear the cached ticker maps so the next lookup refetches
company_tickers.json — long-running processes pick up new listings.
Also run automatically by edgar.core/clear-cache!.
sourceraw docstring

company-cikclj

(company-cik ticker-or-cik)

Return the zero-padded 10-digit CIK for a ticker or CIK input. A CIK may be an integer (320193) or a numeric string with or without leading zeros. Throws ex-info with :type ::unknown-ticker when a ticker cannot be resolved.

Return the zero-padded 10-digit CIK for a ticker or CIK input.
A CIK may be an integer (320193) or a numeric string with or without
leading zeros. Throws ex-info with :type ::unknown-ticker when a ticker
cannot be resolved.
sourceraw docstring

company-metadataclj

(company-metadata ticker-or-cik)

Return a shaped metadata map for a company from the SEC submissions endpoint. Accepts ticker or CIK. Extracts the most useful fields from the raw response.

Returns: {:cik "0000320193" :name "Apple Inc." :tickers ["AAPL"] :exchanges ["Nasdaq"] :sic "3571" :sic-description "Electronic Computers" :entity-type "operating" :category "Large accelerated filer" :state-of-inc "CA" :state-of-inc-description "CA" :fiscal-year-end "0926" ; MMDD format as returned by SEC :ein "942404110" :phone "(408) 996-1010" :website "" :addresses {:business {...} :mailing {...}} :former-names [{:name "..." :date "..."}]}

Return a shaped metadata map for a company from the SEC submissions endpoint.
Accepts ticker or CIK. Extracts the most useful fields from the raw response.

Returns:
  {:cik               "0000320193"
   :name              "Apple Inc."
   :tickers           ["AAPL"]
   :exchanges         ["Nasdaq"]
   :sic               "3571"
   :sic-description   "Electronic Computers"
   :entity-type       "operating"
   :category          "Large accelerated filer"
   :state-of-inc      "CA"
   :state-of-inc-description "CA"
   :fiscal-year-end   "0926"   ; MMDD format as returned by SEC
   :ein               "942404110"
   :phone             "(408) 996-1010"
   :website           ""
   :addresses         {:business {...} :mailing {...}}
   :former-names      [{:name "..." :date "..."}]}
sourceraw docstring

company-nameclj

(company-name ticker-or-cik)

Return the company name for a ticker or CIK.

Return the company name for a ticker or CIK.
sourceraw docstring

get-companyclj

(get-company ticker-or-cik)

Fetch full company metadata map from SEC submissions endpoint. Accepts ticker string or CIK (string or integer). Returns a map with keys :cik :name :tickers :sic :sic-description :state-of-incorporation :fiscal-year-end :filings and more. Throws ex-info with :type ::unknown-ticker when a ticker cannot be resolved.

Fetch full company metadata map from SEC submissions endpoint.
Accepts ticker string or CIK (string or integer).
Returns a map with keys :cik :name :tickers :sic :sic-description
:state-of-incorporation :fiscal-year-end :filings and more.
Throws ex-info with :type ::unknown-ticker when a ticker cannot be resolved.
sourceraw docstring

search-companiesclj

(search-companies query & {:keys [limit] :or {limit 10}})

Search EDGAR entities (companies, funds, individual filers) by name. Uses the EDGAR company-name index — the typeahead behind the SEC's company search box — so only entities whose CURRENT name matches the query are returned, best match first. Ticker and CIK queries match too.

Returns a vector of maps: :cik - zero-padded 10-digit CIK :name - current entity name, ticker suffix removed :tickers - vector of ticker strings (empty for entities without one)

Options: :limit - max results (default 10; the SEC endpoint returns at most 10)

Search EDGAR entities (companies, funds, individual filers) by name.
Uses the EDGAR company-name index — the typeahead behind the SEC's
company search box — so only entities whose CURRENT name matches the
query are returned, best match first. Ticker and CIK queries match too.

Returns a vector of maps:
  :cik     - zero-padded 10-digit CIK
  :name    - current entity name, ticker suffix removed
  :tickers - vector of ticker strings (empty for entities without one)

Options:
  :limit - max results (default 10; the SEC endpoint returns at most 10)
sourceraw docstring

ticker->cikclj

(ticker->cik ticker)

Resolve a ticker symbol to a CIK string (zero-padded to 10 digits). Case-insensitive; share-class dots are accepted ("BRK.B" = "BRK-B"). Returns nil if not found.

Resolve a ticker symbol to a CIK string (zero-padded to 10 digits).
Case-insensitive; share-class dots are accepted ("BRK.B" = "BRK-B").
Returns nil if not found.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close