使用python从edgar数据库下载sec文件。
sec-edgar-downloader的Python项目详细描述
sec edgar downloader是一个用于从SEC EDGAR database下载company filings的python包。搜索可以由stock ticker或Central Index Key (CIK)执行。如果找不到合适的ticker,可以使用SEC CIK lookup tool。
快速启动
示例用法
fromsec_edgar_downloaderimportDownloader# Initialize a downloader instance.# If no argument is passed to the constructor, the package# will attempt to locate the user's downloads folder.dl=Downloader("/path/to/valid/save/location")# Get all 8-K filings for Apple (ticker: AAPL)dl.get_8k_filings("AAPL")# Get all 8-K filings for Apple, including filing amends (8-K/A)dl.get_8k_filings("AAPL",include_amends=True)# Get all 8-K filings for Apple before March 25, 2017# Note: before_date string must be in the form "YYYYMMDD"dl.get_8k_filings("AAPL",before_date="20170325")# Get the past 5 8-K filings for Appledl.get_8k_filings("AAPL",5)# Get all 10-K filings for Microsoft (ticker: MSFT)dl.get_10k_filings("MSFT")# Get the latest 10-K filing for Microsoftdl.get_10k_filings("MSFT",1)# Get all 10-Q filings for Visa (ticker: V)dl.get_10q_filings("V")# Get all 13F-NT filings for the Vanguard Group (CIK: 0000102909)dl.get_13f_nt_filings("0000102909")# Get all 13F-HR filings for the Vanguard Groupdl.get_13f_hr_filings("0000102909")# Get all SC 13G filings for Appledl.get_sc_13g_filings("AAPL")# Get all SD filings for Appledl.get_sd_filings("AAPL")# Get the latest filings (8-K, 10-K, 10-Q, 13F, SC 13G, SD), if available, for Appledl.get_all_available_filings("AAPL",1)# Get the latest filings (8-K, 10-K, 10-Q, 13F, SC 13G, SD), if available, for a# specified list of tickers and CIKssymbols=["AAPL","MSFT","0000102909","V","FB"]forsinsymbols:dl.get_all_available_filings(s,1)
支持的SEC文件
- 8-K
- 10-K
- 10-q
- 13f-nt和13f-hr
- SC 13G
- 标准差
你可以了解更多关于证券交易委员会不同类型的文件。
贡献
如果您遇到错误或希望看到新的公司文件或功能添加到sec edgar downloader,请file an issue或submit a pull request。
文档
有关完整文档,请访问sec-edgar-downloader.readthedocs.io。