get_13f: Retrieve 13F filings

Description Usage Arguments Examples

View source: R/master_index.R

Description

get_13f retrieves and parses a company's 13F filings along with meta information or the links to the filings.

Usage

1
get_13f(cik, year, amendments = FALSE, link_only = FALSE)

Arguments

cik

Central Index Key for filing entity, see https://www.sec.gov/edgar/searchedgar/companysearch.html

year

Year for which filings should be retrieved.

amendments

Include 13F-HR/A when retrieving — only works when link_only = TRUE. Defaults to FALSE.

link_only

Do not retrieve full filing but only link to it.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Get and parse BlackRock's 2015 13F filings.
cik_blackrock <- "1364742"
get_13f(
  cik = cik_blackrock, year = 2015,
  link_only = FALSE
)
# Get the links to the Swiss National Bank's 2016 to 2019 filings.
cik_snb <- "1582202"
snb <- get_13f(
  cik = cik_snb, year = 2016:2019,
  amendments = TRUE, link_only = TRUE
)

balthasars/tidysec documentation built on Dec. 19, 2021, 6:41 a.m.