For a given company, either by ticker, CIK, or pre-fetched page, we extract 2 sets of information:

Company Information

Filing date, accepted date, etc.

Filings

Companies included in the filing

company_details(x, ownership = FALSE, type = "", before = "",
  count = 40, page = 1)

Arguments

x

either a stock ticker, CIK number, or XML document for a company page

ownership

boolean for inclusion of company change filings

type

Type of filing to fetch. NOTE: due to the way the SEC EDGAR system works, it is actually is a 'starts-with' search, so for instance specifying 'type = "10-K" will return "10-K/A" and "10-K405" filings as well. To ensure you only get the type you want, best practice would be to filter the results.

before

yyyymmdd format of latest filing to fetch

count

Number of filings to fetch per page. Valid options are 10, 20, 40, 80, or 100. Other values will result in the closest count.

page

Which page of results to return.

Value

A list with the following components

information

data.frame as returned by company_information

filings

data.frame as returned by company_filings

Examples

company_details("AAPL", before = "20170810")
#> $information #> name cik fiscal_year_end sic sic_description state_location #> 1 APPLE INC 0000320193 0930 3571 ELECTRONIC COMPUTERS CA #> state_incorporation mailing_city mailing_state mailing_zip mailing_street #> 1 CA CUPERTINO CA 95014 ONE INFINITE LOOP #> business_city business_state business_zip business_street business_phone #> 1 CUPERTINO CA 95014 ONE INFINITE LOOP (408) 996-1010 #> #> $filings #> accession_number act file_number filing_date accepted_date #> 1 0000320193-17-000009 34 001-36743 2017-08-02 2017-08-02 #> 2 0000320193-17-000006 34 001-36743 2017-08-01 2017-08-01 #> href #> 1 https://www.sec.gov/Archives/edgar/data/320193/000032019317000009/0000320193-17-000009-index.htm #> 2 https://www.sec.gov/Archives/edgar/data/320193/000032019317000006/0000320193-17-000006-index.htm #> type film_number #> 1 10-Q 171000359 #> 2 8-K 17997093 #> form_name #> 1 Quarterly report [Sections 13 or 15(d)] #> 2 Current report #> description size #> 1 <NA> 10 MB #> 2 items 2.02 and 9.01 406 KB #> [ reached getOption("max.print") -- omitted 38 rows ] #>