Closed 5fff closed 1 month ago
[updated original comment] Oh actually, I think this is an very edge case, as technically it's Oct 1st at this moment on east coast, and the Q4 index is not published yet at 1 AM in the morning of 1st day of Q4. I think it's just bad timing. Perhaps add a time check?
Thanks, this tends to happen every quarter, and it's tricky to handle and especially test since it goes away once the data shows up. I will try to put in a permanent fix
It seems like using the find() and get_by_accession_number() also run into this issue when you try to get a new filing (published on same day) by accession number.
Found a workaround which I can find an older version of the document and then use .related_filings() to use the newly published files.
Is there a quicker way to get a filing by accession number? It seems like edgar-tool is doing a lookup/search using quarterly index instead of going straight to the filing index page. e.g.
https://www.sec.gov/Archives/edgar/data/{CIK}/{ACCESSION_NUMBER_NO_SPACE}/{ACCESSION_NUMBER}-index.htm
I did a fix where it returns empty filings when it is the beginning of a quarter, and the index files have not yet been published.
This should be fixed in the latest release (2.33.0) and it should prevent the issue when the 2025 1st quarter begins.
For the second part of your question, if you know the CIK of the filer, that would be the fastest way to find a filing. However, for a lot of companies - especially the smaller ones - the CIK of the company is not the same as a CIK of the filer. Since the CIK is not known, the Edgar tools go to the index to find the filing.
Now this adds overhead, but if you are only looking for a few filings, you can probably tolerate the overhead of getting the indexes and looking through the indexes. If you are looking for a lot of filings, the quarterly indexes are cached, which will add speed on subsequent filings.
Currently one can get a filing directly by using the filing constructor as follows:
filing = Filing(form='1-U', filing_date='2024-06-06', company='Masterworks Vault 5, LLC', cik=1999710,
accession_no='0001493152-24-022961')
I think we can possibly add a function that allows you to specify the CIK and accession number and find the filing.
Awesome! Constructor is exactly what I'm looker for :) And thanks for all the great work on this!
Fixed
When using
get_filings
function that include current year at 1am in the beginning of a quarter will try to access the index file before it's available.