SEC EDGAR Downloader πŸ“ˆ

29
SEC EDGAR Downloader Release 4.3.0 Jad Chaar Dec 24, 2021

Transcript of SEC EDGAR Downloader πŸ“ˆ

Page 1: SEC EDGAR Downloader πŸ“ˆ

SEC EDGAR DownloaderRelease 4.3.0

Jad Chaar

Dec 24, 2021

Page 2: SEC EDGAR Downloader πŸ“ˆ
Page 3: SEC EDGAR Downloader πŸ“ˆ

CONTENTS

1 Quick Start 31.1 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31.2 Basic Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31.3 Advanced Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

2 Supported SEC Filing Types 5

3 Contributing 17

4 Documentation 19

5 API Guide 215.1 Downloader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

Python Module Index 23

Index 25

i

Page 4: SEC EDGAR Downloader πŸ“ˆ

ii

Page 6: SEC EDGAR Downloader πŸ“ˆ

SEC EDGAR Downloader , Release 4.3.0

2 CONTENTS

Page 7: SEC EDGAR Downloader πŸ“ˆ

CHAPTER

ONE

QUICK START

1.1 Installation

Install and update this package using pip:

$ pip install -U sec-edgar-downloader

1.2 Basic Usage

from sec_edgar_downloader import Downloader

# Initialize a downloader instance. If no argument is passed# to the constructor, the package will download filings to# the current working directory.dl = Downloader("/path/to/valid/save/location")

# Get all 8-K filings for Apple (ticker: AAPL)dl.get("8-K", "AAPL")

# Get all 8-K filings for Apple, including filing amends (8-K/A)dl.get("8-K", "AAPL", include_amends=True)

# Get all 8-K filings for Apple after January 1, 2017 and before March 25, 2017# Note: after and before strings must be in the form "YYYY-MM-DD"dl.get("8-K", "AAPL", after="2017-01-01", before="2017-03-25")

# Get the five most recent 8-K filings for Appledl.get("8-K", "AAPL", amount=5)

# Get all 10-K filings for Microsoftdl.get("10-K", "MSFT")

# Get the latest 10-K filing for Microsoftdl.get("10-K", "MSFT", amount=1)

# Get all 10-Q filings for Visadl.get("10-Q", "V")

(continues on next page)

3

Page 8: SEC EDGAR Downloader πŸ“ˆ

SEC EDGAR Downloader , Release 4.3.0

(continued from previous page)

# Get all 13F-NT filings for the Vanguard Groupdl.get("13F-NT", "0000102909")

# Get all 13F-HR filings for the Vanguard Groupdl.get("13F-HR", "0000102909")

# Get all SC 13G filings for Appledl.get("SC 13G", "AAPL")

# Get all SD filings for Appledl.get("SD", "AAPL")

1.3 Advanced Usage

from sec_edgar_downloader import Downloader

# Download filings to the current working directorydl = Downloader()

# Get all Apple proxy statements that contain the term "antitrust"dl.get("DEF 14A", "AAPL", query="antitrust")

# Get all 10-K filings for Microsoft without the filing detailsdl.get("10-K", "MSFT", download_details=False)

# Get the latest supported filings, if available, for Applefor filing_type in dl.supported_filings:

dl.get(filing_type, "AAPL", amount=1)

# Get the latest supported filings, if available, for a# specified list of tickers and CIKsequity_ids = ["AAPL", "MSFT", "0000102909", "V", "FB"]for equity_id in equity_ids:

for filing_type in dl.supported_filings:dl.get(filing_type, equity_id, amount=1)

4 Chapter 1. Quick Start

Page 9: SEC EDGAR Downloader πŸ“ˆ

CHAPTER

TWO

SUPPORTED SEC FILING TYPES

This package supports downloading all SEC filing types (6-K, 8-K, 10-K, DEF 14A, S-1, and many others). Youcan learn more about the different SEC filing types here). Below is an exhaustive list of all filings types that can bedownloaded by this package:

β€’ 1

β€’ 1-A

β€’ 1-A POS

β€’ 1-A-W

β€’ 1-E

β€’ 1-E AD

β€’ 1-K

β€’ 1-SA

β€’ 1-U

β€’ 1-Z

β€’ 1-Z-W

β€’ 10-12B

β€’ 10-12G

β€’ 10-D

β€’ 10-K

β€’ 10-KT

β€’ 10-Q

β€’ 10-QT

β€’ 11-K

β€’ 11-KT

β€’ 13F-HR

β€’ 13F-NT

β€’ 13FCONP

β€’ 144

β€’ 15-12B

5

Page 10: SEC EDGAR Downloader πŸ“ˆ

SEC EDGAR Downloader , Release 4.3.0

β€’ 15-12G

β€’ 15-15D

β€’ 15F-12B

β€’ 15F-12G

β€’ 15F-15D

β€’ 18-12B

β€’ 18-K

β€’ 19B-4E

β€’ 2-A

β€’ 2-AF

β€’ 2-E

β€’ 20-F

β€’ 20FR12B

β€’ 20FR12G

β€’ 24F-2NT

β€’ 25

β€’ 25-NSE

β€’ 253G1

β€’ 253G2

β€’ 253G3

β€’ 253G4

β€’ 3

β€’ 305B2

β€’ 34-12H

β€’ 4

β€’ 40-17F1

β€’ 40-17F2

β€’ 40-17G

β€’ 40-17GCS

β€’ 40-202A

β€’ 40-203A

β€’ 40-206A

β€’ 40-24B2

β€’ 40-33

β€’ 40-6B

β€’ 40-8B25

6 Chapter 2. Supported SEC Filing Types

Page 11: SEC EDGAR Downloader πŸ“ˆ

SEC EDGAR Downloader , Release 4.3.0

β€’ 40-8F-2

β€’ 40-APP

β€’ 40-F

β€’ 40-OIP

β€’ 40FR12B

β€’ 40FR12G

β€’ 424A

β€’ 424B1

β€’ 424B2

β€’ 424B3

β€’ 424B4

β€’ 424B5

β€’ 424B7

β€’ 424B8

β€’ 424H

β€’ 425

β€’ 485APOS

β€’ 485BPOS

β€’ 485BXT

β€’ 486APOS

β€’ 486BPOS

β€’ 486BXT

β€’ 487

β€’ 497

β€’ 497AD

β€’ 497H2

β€’ 497J

β€’ 497K

β€’ 5

β€’ 6-K

β€’ 6B NTC

β€’ 6B ORDR

β€’ 8-A12B

β€’ 8-A12G

β€’ 8-K

β€’ 8-K12B

7

Page 12: SEC EDGAR Downloader πŸ“ˆ

SEC EDGAR Downloader , Release 4.3.0

β€’ 8-K12G3

β€’ 8-K15D5

β€’ 8-M

β€’ 8F-2 NTC

β€’ 8F-2 ORDR

β€’ 9-M

β€’ ABS-15G

β€’ ABS-EE

β€’ ADN-MTL

β€’ ADV-E

β€’ ADV-H-C

β€’ ADV-H-T

β€’ ADV-NR

β€’ ANNLRPT

β€’ APP NTC

β€’ APP ORDR

β€’ APP WD

β€’ APP WDG

β€’ ARS

β€’ ATS-N

β€’ ATS-N-C

β€’ ATS-N/UA

β€’ AW

β€’ AW WD

β€’ C

β€’ C-AR

β€’ C-AR-W

β€’ C-TR

β€’ C-TR-W

β€’ C-U

β€’ C-U-W

β€’ C-W

β€’ CB

β€’ CERT

β€’ CERTARCA

β€’ CERTBATS

8 Chapter 2. Supported SEC Filing Types

Page 13: SEC EDGAR Downloader πŸ“ˆ

SEC EDGAR Downloader , Release 4.3.0

β€’ CERTCBO

β€’ CERTNAS

β€’ CERTNYS

β€’ CERTPAC

β€’ CFPORTAL

β€’ CFPORTAL-W

β€’ CORRESP

β€’ CT ORDER

β€’ D

β€’ DEF 14A

β€’ DEF 14C

β€’ DEFA14A

β€’ DEFA14C

β€’ DEFC14A

β€’ DEFC14C

β€’ DEFM14A

β€’ DEFM14C

β€’ DEFN14A

β€’ DEFR14A

β€’ DEFR14C

β€’ DEL AM

β€’ DFAN14A

β€’ DFRN14A

β€’ DOS

β€’ DOSLTR

β€’ DRS

β€’ DRSLTR

β€’ DSTRBRPT

β€’ EFFECT

β€’ F-1

β€’ F-10

β€’ F-10EF

β€’ F-10POS

β€’ F-1MEF

β€’ F-3

β€’ F-3ASR

9

Page 14: SEC EDGAR Downloader πŸ“ˆ

SEC EDGAR Downloader , Release 4.3.0

β€’ F-3D

β€’ F-3DPOS

β€’ F-3MEF

β€’ F-4

β€’ F-4 POS

β€’ F-4MEF

β€’ F-6

β€’ F-6 POS

β€’ F-6EF

β€’ F-7

β€’ F-7 POS

β€’ F-8

β€’ F-8 POS

β€’ F-80

β€’ F-80POS

β€’ F-9

β€’ F-9 POS

β€’ F-N

β€’ F-X

β€’ FOCUSN

β€’ FWP

β€’ G-405

β€’ G-405N

β€’ G-FIN

β€’ G-FINW

β€’ IRANNOTICE

β€’ MA

β€’ MA-A

β€’ MA-I

β€’ MA-W

β€’ MSD

β€’ MSDCO

β€’ MSDW

β€’ N-1

β€’ N-14

β€’ N-14 8C

10 Chapter 2. Supported SEC Filing Types

Page 15: SEC EDGAR Downloader πŸ“ˆ

SEC EDGAR Downloader , Release 4.3.0

β€’ N-14MEF

β€’ N-18F1

β€’ N-1A

β€’ N-2

β€’ N-23C-2

β€’ N-23C3A

β€’ N-23C3B

β€’ N-23C3C

β€’ N-2MEF

β€’ N-30B-2

β€’ N-30D

β€’ N-4

β€’ N-5

β€’ N-54A

β€’ N-54C

β€’ N-6

β€’ N-6F

β€’ N-8A

β€’ N-8B-2

β€’ N-8F

β€’ N-8F NTC

β€’ N-8F ORDR

β€’ N-CEN

β€’ N-CR

β€’ N-CSR

β€’ N-CSRS

β€’ N-MFP

β€’ N-MFP1

β€’ N-MFP2

β€’ N-PX

β€’ N-Q

β€’ NO ACT

β€’ NPORT-EX

β€’ NPORT-NP

β€’ NPORT-P

β€’ NRSRO-CE

11

Page 16: SEC EDGAR Downloader πŸ“ˆ

SEC EDGAR Downloader , Release 4.3.0

β€’ NRSRO-UPD

β€’ NSAR-A

β€’ NSAR-AT

β€’ NSAR-B

β€’ NSAR-BT

β€’ NSAR-U

β€’ NT 10-D

β€’ NT 10-K

β€’ NT 10-Q

β€’ NT 11-K

β€’ NT 20-F

β€’ NT N-CEN

β€’ NT N-MFP

β€’ NT N-MFP1

β€’ NT N-MFP2

β€’ NT NPORT-EX

β€’ NT NPORT-P

β€’ NT-NCEN

β€’ NT-NCSR

β€’ NT-NSAR

β€’ NTFNCEN

β€’ NTFNCSR

β€’ NTFNSAR

β€’ NTN 10D

β€’ NTN 10K

β€’ NTN 10Q

β€’ NTN 20F

β€’ OIP NTC

β€’ OIP ORDR

β€’ POS 8C

β€’ POS AM

β€’ POS AMI

β€’ POS EX

β€’ POS462B

β€’ POS462C

β€’ POSASR

12 Chapter 2. Supported SEC Filing Types

Page 17: SEC EDGAR Downloader πŸ“ˆ

SEC EDGAR Downloader , Release 4.3.0

β€’ PRE 14A

β€’ PRE 14C

β€’ PREC14A

β€’ PREC14C

β€’ PREM14A

β€’ PREM14C

β€’ PREN14A

β€’ PRER14A

β€’ PRER14C

β€’ PRRN14A

β€’ PX14A6G

β€’ PX14A6N

β€’ QRTLYRPT

β€’ QUALIF

β€’ REG-NR

β€’ REVOKED

β€’ RW

β€’ RW WD

β€’ S-1

β€’ S-11

β€’ S-11MEF

β€’ S-1MEF

β€’ S-20

β€’ S-3

β€’ S-3ASR

β€’ S-3D

β€’ S-3DPOS

β€’ S-3MEF

β€’ S-4

β€’ S-4 POS

β€’ S-4EF

β€’ S-4MEF

β€’ S-6

β€’ S-8

β€’ S-8 POS

β€’ S-B

13

Page 18: SEC EDGAR Downloader πŸ“ˆ

SEC EDGAR Downloader , Release 4.3.0

β€’ S-BMEF

β€’ SC 13D

β€’ SC 13E1

β€’ SC 13E3

β€’ SC 13G

β€’ SC 14D9

β€’ SC 14F1

β€’ SC 14N

β€’ SC TO-C

β€’ SC TO-I

β€’ SC TO-T

β€’ SC13E4F

β€’ SC14D1F

β€’ SC14D9C

β€’ SC14D9F

β€’ SD

β€’ SDR

β€’ SE

β€’ SEC ACTION

β€’ SEC STAFF ACTION

β€’ SEC STAFF LETTER

β€’ SF-1

β€’ SF-3

β€’ SL

β€’ SP 15D2

β€’ STOP ORDER

β€’ SUPPL

β€’ T-3

β€’ TA-1

β€’ TA-2

β€’ TA-W

β€’ TACO

β€’ TH

β€’ TTW

β€’ UNDER

β€’ UPLOAD

14 Chapter 2. Supported SEC Filing Types

Page 19: SEC EDGAR Downloader πŸ“ˆ

SEC EDGAR Downloader , Release 4.3.0

β€’ WDL-REQ

β€’ X-17A-5

15

Page 20: SEC EDGAR Downloader πŸ“ˆ

SEC EDGAR Downloader , Release 4.3.0

16 Chapter 2. Supported SEC Filing Types

Page 21: SEC EDGAR Downloader πŸ“ˆ

CHAPTER

THREE

CONTRIBUTING

If you encounter a bug or would like to see a new company filing or feature added to sec-edgar-downloader, pleasefile an issue or submit a pull request.

17

Page 22: SEC EDGAR Downloader πŸ“ˆ

SEC EDGAR Downloader , Release 4.3.0

18 Chapter 3. Contributing

Page 23: SEC EDGAR Downloader πŸ“ˆ

CHAPTER

FOUR

DOCUMENTATION

For full documentation, please visit sec-edgar-downloader.readthedocs.io.

19

Page 24: SEC EDGAR Downloader πŸ“ˆ

SEC EDGAR Downloader , Release 4.3.0

20 Chapter 4. Documentation

Page 25: SEC EDGAR Downloader πŸ“ˆ

CHAPTER

FIVE

API GUIDE

5.1 Downloader

Provides a Downloader class for downloading SEC EDGAR filings.

class sec_edgar_downloader.Downloader.Downloader(download_folder=None)A Downloader object.

Parameters download_folder (Union[str, Path, None]) – relative or absolute path to downloadlocation. Defaults to the current working directory.

Usage:

>>> from sec_edgar_downloader import Downloader

# Download to current working directory>>> dl = Downloader()

# Download to relative or absolute path>>> dl = Downloader("/path/to/valid/save/location")

get(filing, ticker_or_cik, *, amount=None, after=None, before=None, include_amends=False,download_details=True, query='')Download filings and save them to disk.

Parameters

β€’ filing (str) – filing type to download (e.g. 8-K).

β€’ ticker_or_cik (str) – ticker or CIK to download filings for.

β€’ amount (Optional[int]) – number of filings to download. Defaults to all available filings.

β€’ after (Optional[str]) – date of form YYYY-MM-DD after which to download filings.Defaults to 2000-01-01, the earliest date supported by EDGAR full text search.

β€’ before (Optional[str]) – date of form YYYY-MM-DD before which to download fil-ings. Defaults to today.

β€’ include_amends (bool) – denotes whether or not to include filing amends (e.g. 8-K/A).Defaults to False.

β€’ download_details (bool) – denotes whether or not to download human-readable andeasily parseable filing detail documents (e.g. form 4 XML, 8-K HTML). Defaults to True.

β€’ query (str) – keyword to search for in filing documents.

Return type int

21

Page 26: SEC EDGAR Downloader πŸ“ˆ

SEC EDGAR Downloader , Release 4.3.0

Returns number of filings downloaded.

Usage:

>>> from sec_edgar_downloader import Downloader>>> dl = Downloader()

# Get all 8-K filings for Apple>>> dl.get("8-K", "AAPL")

# Get all 8-K filings for Apple, including filing amends (8-K/A)>>> dl.get("8-K", "AAPL", include_amends=True)

# Get all 8-K filings for Apple after January 1, 2017 and before March 25, 2017>>> dl.get("8-K", "AAPL", after="2017-01-01", before="2017-03-25")

# Get the five most recent 10-K filings for Apple>>> dl.get("10-K", "AAPL", amount=5)

# Get all 10-K filings for Apple, excluding the filing detail documents>>> dl.get("10-K", "AAPL", amount=1, download_details=False)

# Get all Apple proxy statements that contain the term "antitrust">>> dl.get("DEF 14A", "AAPL", query="antitrust")

# Get all 10-Q filings for Visa>>> dl.get("10-Q", "V")

# Get all 13F-NT filings for the Vanguard Group>>> dl.get("13F-NT", "0000102909")

# Get all 13F-HR filings for the Vanguard Group>>> dl.get("13F-HR", "0000102909")

# Get all SC 13G filings for Apple>>> dl.get("SC 13G", "AAPL")

# Get all SD filings for Apple>>> dl.get("SD", "AAPL")

22 Chapter 5. API Guide

Page 27: SEC EDGAR Downloader πŸ“ˆ

PYTHON MODULE INDEX

ssec_edgar_downloader.Downloader, 21

23

Page 28: SEC EDGAR Downloader πŸ“ˆ

SEC EDGAR Downloader , Release 4.3.0

24 Python Module Index

Page 29: SEC EDGAR Downloader πŸ“ˆ

INDEX

DDownloader (class in sec_edgar_downloader.Downloader),

21

Gget() (sec_edgar_downloader.Downloader.Downloader

method), 21

Mmodulesec_edgar_downloader.Downloader, 21

Ssec_edgar_downloader.Downloader

module, 21

25