dgunning / edgartools

Python library for working with SEC Edgar
MIT License
324 stars 70 forks source link

Use local data for Company facts #56

Closed redpoint13 closed 1 week ago

redpoint13 commented 1 month ago

Can the bulk data be downloaded from the SEC (https://www.sec.gov/edgar/sec-api-documentation)? For a Company, the data would be accessed locally from the companyfacts file (https://www.sec.gov/Archives/edgar/daily-index/xbrl/companyfacts.zip), with the hope of speeding up large data downloads, like when accessing all filings from the SP500.

dgunning commented 1 month ago

Hey, thanks for the suggestion, it's worth looking into. I'll do a quick scan this weekend then a deeper dive later.

dgunning commented 1 week ago

Testing local storage now

dgunning commented 1 week ago

Released 2.25.0 with bulk data downloaded to local storage for facts and submissions.

from edgar import *

use_local_storage() # OR os.environ['EDGAR_USE_LOCAL_DATA'] = "1"
download_edgar_data()

Should work as normal but faster. I think the local submissions limited to latest 1000 filings

dgunning commented 1 week ago

Closed as fixed