๐Ÿ“Š Access company financials, insider trades, and SEC filings instantly with Python's most powerful EDGAR data library. ๐Ÿš€ Easy to use, fast resul

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-12-24 16:00:05

๐Ÿ“Š Access company financials, insider trades, and SEC filings instantly with Python's most powerful EDGAR data library. ๐Ÿš€ Easy to use, fast results.

Before you can access the SEC Edgar API you need to set the identity that you will use to access Edgar. This is usually your name and email, or a company name and email but you can also just use an email.

EdgarTools will look for an environment variable called EDGAR_IDENTITY and use that in each request. So, you need to set this environment variable before using it.

Now the reason you may want to download attachments is to get information contained in data files. For example, 13F-HR filings have attached infotable.xml files containing data from the holding report for that filing.

Fortunately, the library handles this for you. If you call filing.obj() it will automatically download and parse the data files into a data object, for several different form types. Currently, the following forms are supported:

Some filings are in XBRL (eXtensible Business Markup Language) format. These are mainly the newer filings, as the SEC has started requiring this for newer filings.

Leave a Comment